You are here

function coder_upgrade_settings_form in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_upgrade/includes/settings.inc \coder_upgrade_settings_form()

Form builder for the settings form.

1 string reference to 'coder_upgrade_settings_form'
_coder_upgrade_menu in coder_upgrade/includes/menu.inc
Implements hook_menu().

File

coder_upgrade/includes/settings.inc, line 12
Provides module conversion settings form.

Code

function coder_upgrade_settings_form($form, &$form_state) {

  // Build the form.
  $form['tabs'] = array(
    '#type' => 'vertical_tabs',
    '#default_tab' => 'edit-upgrade',
  );

  // Set weight on fieldsets so other modules can easily insert a tab at a specific position.
  $form['tabs']['general'] = coder_upgrade_general_build();
  $form['tabs']['performance'] = coder_upgrade_performance_build();
  $form['#submit'][] = 'coder_upgrade_settings_form_submit';
  return system_settings_form($form);
}