You are here

function botcha_admin_settings in BOTCHA Spam Prevention 6

Same name and namespace in other branches
  1. 6.2 botcha.admin.inc \botcha_admin_settings()
  2. 7 botcha.pages.inc \botcha_admin_settings()
  3. 7.2 botcha.admin.inc \botcha_admin_settings()
1 string reference to 'botcha_admin_settings'
botcha_menu in ./botcha.module
Implements hook_menu().

File

./botcha.pages.inc, line 213
Implementation of botcha administration forms.

Code

function botcha_admin_settings(&$form_state) {

  //  $form = system_settings_form(_botcha_admin_settings($form_state));
  // We can't use system_settings_form() here because it will put all extra stuff into variables, that we want to avoid.
  $form = _botcha_admin_settings($form_state);
  $form['buttons']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save configuration'),
  );
  $form['buttons']['reset'] = array(
    '#type' => 'submit',
    '#value' => t('Reset to defaults'),
  );

  //  if (!empty($_POST) && form_get_errors()) {
  //    drupal_set_message(t('The settings have not been saved because of the errors.'), 'error');
  //  }
  //  $form['#submit'][] = 'system_settings_form_submit';
  $form['#theme'] = 'system_settings_form';

  //  $form['#validate'][] = 'botcha_admin_settings_validate';
  //  $form['#submit'][] = 'botcha_admin_settings_submit';
  return $form;
}