function theme_signup_node_title in Signup 7
Same name and namespace in other branches
- 6 theme/node.inc \theme_signup_node_title()
Return HTML desired when displaying a node title along with the signup date.
1 theme call to theme_signup_node_title()
- signup_form_user_register_form_alter in ./
signup.module - Implements hook_form_FORM_ID_alter().
File
- theme/
node.inc, line 68 - Theme functions when viewing a signup-enabled node.
Code
function theme_signup_node_title($variables) {
$node = $variables['node'];
$date_formatted = '';
// TODO: date.inc needs to be ported to D7 before using this.
/* $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;
}