You are here

function fractionslider_form in Views FractionSlider 7.2

Fractionslider configuration form.

1 string reference to 'fractionslider_form'
fractionslider_menu in ./fractionslider.module
Implements hook_menu().

File

./fractionslider.module, line 90
Module file.

Code

function fractionslider_form($form, &$form_state) {
  $page_options = array(
    'page_enable' => t('Load on all pages of site.'),
    'page_disable' => t('Load on only the listed pages.'),
  );
  $form['fractionslider_page_init_action'] = array(
    '#type' => 'radios',
    '#options' => $page_options,
    '#title' => t('Enable fractionslider on specific pages'),
    '#default_value' => variable_get('fractionslider_page_init_action', 'page_enable'),
  );
  $form['fractionslider_page_list'] = array(
    '#type' => 'textarea',
    '#title' => t('Pages'),
    '#description' => t('List one page per line as Drupal paths.  The * character is a wildcard.  Example paths are "node/add/page" and "node/add/*".  Use <front> to match the front page. Empty value will be considered sitewide.'),
    '#default_value' => variable_get('fractionslider_page_list', ''),
    '#states' => array(
      'invisible' => array(
        ':input[name="fractionslider_page_init_action"]' => array(
          'value' => 'page_enable',
        ),
      ),
    ),
  );
  return system_settings_form($form);
}