You are here

function focus_admin_settings in Autofocus 5

Same name and namespace in other branches
  1. 6 focus.module \focus_admin_settings()
  2. 7 focus.module \focus_admin_settings()

Settings form.

1 string reference to 'focus_admin_settings'
focus_menu in ./focus.module
Implementation of hook_menu(). Settings link.

File

./focus.module, line 54
Simple module that sets focus on the first field in a form.

Code

function focus_admin_settings() {
  $form['focus_forms'] = array(
    '#type' => 'textarea',
    '#title' => t('Forms'),
    '#default_value' => variable_get('focus_forms', FOCUS_FORMS),
    '#rows' => 20,
    '#description' => t('Enter one form_id per line. !content_type! can be used as a wildcard for all content types. The form_id of a form can be found by looking at the HTML source. Look for <input type="hidden" name="form_id" value="search_form"  />. The value is the form_id, in this example "search_form".'),
  );
  return system_settings_form($form);
}