You are here

function signup_admin_form_header in Signup 5.2

Same name and namespace in other branches
  1. 6.2 includes/admin.signup_administration.inc \signup_admin_form_header()
  2. 6 includes/admin.signup_administration.inc \signup_admin_form_header()
  3. 7 includes/admin.signup_administration.inc \signup_admin_form_header()
1 call to signup_admin_form_header()
signup_admin_form in ./signup.module

File

./signup.module, line 1305
The Signup module (http://drupal.org/project/signup) manages replies to nodes. In particular, it's good for event management. Signup supports sending reminder emails and automatically closing signups for nodes with a start time, via the Event…

Code

function signup_admin_form_header() {
  if (module_exists('date')) {

    // If we're using CCK date, we can't sort since the date field used for
    // each content type can come from different tables.
    return array(
      'data' => t('Start'),
      'field' => NULL,
    );
  }
  elseif (module_exists('event')) {

    // If we've got event, but not date, we can sort by e.event_start.
    return array(
      'data' => t('Start'),
      'field' => 'e.event_start',
    );
  }

  // If we've got no scheduling backend at all, there's no start time column.
  return array();
}