You are here

function signup_settings_page in Signup 5

Same name and namespace in other branches
  1. 5.2 signup.module \signup_settings_page()

Form builder for the settings page under admin/setttings/signup

1 string reference to 'signup_settings_page'
signup_menu in ./signup.module
Implementation of hook_menu().

File

./signup.module, line 893

Code

function signup_settings_page() {
  $form['signup_close_early'] = array(
    '#title' => t('Close x hours before'),
    '#type' => 'textfield',
    '#default_value' => variable_get('signup_close_early', 1),
    '#size' => 5,
    '#maxlength' => 10,
    '#description' => t('The number of hours before the event which signups will no longer be allowed. Use negative numbers to close signups after the event start (example: -12).'),
  );
  $form['node_defaults'] = array(
    '#type' => 'fieldset',
    '#title' => t('Default signup information'),
    '#description' => t('New signup-enabled nodes will start with these settings.'),
    '#collapsible' => TRUE,
  );
  $form['node_defaults']['_signup_admin_form'] = _signup_admin_form(NULL);

  // Use our own submit handler, so we can do some processing before
  // we hand control to system_settings_form_submit.
  $form['#submit']['signup_settings_page_submit'] = array();
  return system_settings_form($form);
}