You are here

function theme_signup_attended_text in Signup 7

Same name and namespace in other branches
  1. 6.2 theme/node.admin.inc \theme_signup_attended_text()
  2. 6 theme/node.admin.inc \theme_signup_attended_text()

@todo Please document this function.

See also

http://drupal.org/node/1354

4 theme calls to theme_signup_attended_text()
hook_signup_cancel in ./signup.api.php
Hook invoked when a signup is being canceled.
signup_edit_form in includes/signup_edit_form.inc
Build the form for editing existing signups.
signup_handler_field_signup_user_attended::render in views/handlers/signup_handler_field_signup_user_attended.inc
Render the field.
signup_token_values in ./signup.module
Implements hook_token_values() (from token.module)().

File

theme/node.admin.inc, line 167
Theme functions for the signup node administration page (node/N/signups).

Code

function theme_signup_attended_text($variables) {
  $attended = $variables['attended'];
  if ($attended === NULL) {
    return '';
  }
  if ($attended == 0) {
    return t('Did not attend');
  }
  else {
    return t('Attended');
  }
}