You are here

function browserclass_settings_form in Browser Class 6

Same name and namespace in other branches
  1. 7 browserclass.module \browserclass_settings_form()

Build browserclass_settings_form form.

Parameters

array $form_state:

Return value

array The created form.

1 string reference to 'browserclass_settings_form'
browserclass_menu in ./browserclass.module
Implementation of hook_menu().

File

./browserclass.module, line 122

Code

function browserclass_settings_form(&$form_state) {
  $form = array();
  $form['browserclass_operation'] = array(
    '#type' => 'radios',
    '#title' => t('Operation'),
    '#options' => array(
      BROWSERCLASS_OPERATION_WITH_JS => t('Always add the class with JavaScript'),
      BROWSERCLASS_OPERATION_WITHOUT_JS => t('Only use JavaScript if page cache is enabled'),
    ),
    '#default_value' => variable_get('browserclass_operation', BROWSERCLASS_OPERATION_WITHOUT_JS),
  );
  return system_settings_form($form);
}