You are here

function logintoboggan_form_logintoboggan_main_settings_alter in LoginToboggan 7

Implement hook_form_logintoboggan_main_settings_alter().

Related topics

File

./logintoboggan.admin.inc, line 180
Administration functions for LoginToboggan module.

Code

function logintoboggan_form_logintoboggan_main_settings_alter(&$form, &$form_state) {

  // Ensure a valid submit array.
  $form['#submit'] = is_array($form['#submit']) ? $form['#submit'] : array();

  // Make this submit handler run first.
  array_unshift($form['#submit'], 'logintoboggan_main_settings_submit');
}