'. t('Signups closed for this %node_type', array('%node_type' => node_get_types('name', $node->type))) .'';
$output .= $current_signup;
return $output;
}
/**
* Controls the output for anonymous users who can't signup.
*
* @param $anon_login_text
* The translated HTML help text telling users to login (and if allowed on
* this site, register) so they can signup, including login/register links.
*
* @return
* The themed HTML to display the login (and maybe register) help text.
*/
function theme_signup_anonymous_user_login_text($anon_login_text) {
if (!empty($anon_login_text)) {
return '
'. $anon_login_text .'
';
}
}
/**
* Return HTML desired at the top of the signup output for a node.
*
* @param $node
* The fully loaded node object to generate a header for.
*
* @return
* HTML to display at the top of the signup output.
*
* @see _signup_node_output()
*/
function theme_signup_node_output_header($node) {
return '';
}
/*
* Return HTML desired when displaying a node title along with the signup date.
*/
function theme_signup_node_title($node) {
$date_field = signup_date_field($node->type);
if (!empty($date_field)) {
$date_field_name = $date_field['field_name'];
$this_date_field = $node->$date_field_name;
$date_formatted = content_format($date_field, $this_date_field[0]);
if (!empty($date_formatted)) {
$date_formatted = ' - ' . $date_formatted;
}
}
return l($node->title, 'node/'. $node->nid) . $date_formatted;
}