You are here

function theme_signup_node_title in Signup 6

Same name and namespace in other branches
  1. 7 theme/node.inc \theme_signup_node_title()
1 theme call to theme_signup_node_title()
signup_user in ./signup.module
Implementation of hook_user().

File

theme/node.inc, line 64
Theme functions when viewing a signup-enabled node.

Code

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;
}