You are here

function cami_settings_form in Custom Active Menu Item 7

Settings form configuration.

1 string reference to 'cami_settings_form'
cami_menu in ./cami.module
Implements hook_menu().

File

./cami.module, line 37
Allows to specify which menu item is active and the classes that will be added to it.

Code

function cami_settings_form($form_state) {
  $form = array();
  $form['cami_li_classes'] = array(
    '#type' => 'textfield',
    '#title' => t('List classes'),
    '#description' => t('Classes applied to <strong>li</strong> element (separate classes with spaces)'),
    '#default_value' => variable_get('cami_li_classes', 'active-trail'),
  );
  $form['cami_a_classes'] = array(
    '#type' => 'textfield',
    '#title' => t('Link classes'),
    '#description' => t('Classes applied to <strong>a</strong> element (separate classes with spaces)'),
    '#default_value' => variable_get('cami_a_classes', 'active'),
  );
  return system_settings_form($form);
}