You are here

function signup_admin_form_header in Signup 6

Same name and namespace in other branches
  1. 5.2 signup.module \signup_admin_form_header()
  2. 6.2 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 includes/admin.signup_administration.inc
Form builder for the main form on the signup administration page.

File

includes/admin.signup_administration.inc, line 121
Code related to the Signup administration page (admin/content/signup).

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