You are here

function superfish_system_settings_form in Superfish 6

Same name and namespace in other branches
  1. 7 superfish.admin.inc \superfish_system_settings_form()

Overriding system settings form.

1 call to superfish_system_settings_form()
superfish_menu_settings in ./superfish.admin.inc
Module settings form.

File

./superfish.admin.inc, line 39
Functions that are only called on the admin pages.

Code

function superfish_system_settings_form($form) {
  $form['buttons']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save configuration'),
  );
  if (!empty($_POST) && form_get_errors()) {
    drupal_set_message(t('The settings have not been saved because of the errors.'), 'error');
  }

  // Adding our custom submission handler.
  $form['#submit'][] = 'superfish_menu_settings_submit';
  $form['#submit'][] = 'system_settings_form_submit';
  $form['#theme'] = 'system_settings_form';
  return $form;
}