You are here

function flexslider_form_settings in Flex Slider 7

Same name and namespace in other branches
  1. 7.2 flexslider.admin.inc \flexslider_form_settings()

Form builder; Form for advanced module settings.

1 string reference to 'flexslider_form_settings'
flexslider_menu in ./flexslider.module
Implements hook_menu().

File

./flexslider.admin.inc, line 431
Administrative page callbacks for the flexslider module.

Code

function flexslider_form_settings() {
  $form = array();
  $form['library'] = array(
    '#type' => 'fieldset',
    '#title' => 'Library',
  );

  // Debug mode toggle
  $form['library']['flexslider_debug'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable debug mode'),
    '#description' => t('Load the human-readable version of the FlexSlider library.'),
    '#default_value' => variable_get('flexslider_debug', FALSE),
    '#access' => user_access('administer flexslider'),
  );
  return system_settings_form($form);
}