You are here

function eb_custom_slider_admin_settings in Featured Content Slider 7.2

Same name in this branch
  1. 7.2 contrib/eb_custom_slider.module \eb_custom_slider_admin_settings()
  2. 7.2 contrib/custom_slider/eb_custom_slider.module \eb_custom_slider_admin_settings()
2 string references to 'eb_custom_slider_admin_settings'
eb_custom_slider_menu in contrib/eb_custom_slider.module
eb_custom_slider_menu in contrib/custom_slider/eb_custom_slider.module

File

contrib/custom_slider/eb_custom_slider.module, line 356
display content in 'featured content' block using jquery.

Code

function eb_custom_slider_admin_settings() {

  // only administrators can access this function
  // generate the form - settings applying to all patterns first
  $form['content_slider_settings'] = array(
    '#type' => 'fieldset',
    '#weight' => -20,
    '#title' => t('basic settings'),
    '#collapsible' => true,
    '#collapsed' => false,
  );
  $form['content_slider_settings']['fade_enable'] = array(
    '#type' => 'checkbox',
    '#title' => t('enable fade'),
    '#default_value' => variable_get('fade_enable', 0),
    '#description' => t("Enable fade."),
    '#maxlength' => '1',
    '#size' => '1',
  );
  $form['content_slider_settings']['fade_factor'] = array(
    '#type' => 'textfield',
    '#title' => t('fade factor'),
    '#default_value' => variable_get('fade_factor', 0.1),
  );
  $form['content_slider_settings']['content_slider_auto'] = array(
    '#type' => 'checkbox',
    '#title' => t('auto rotate contents'),
    '#default_value' => variable_get('content_slider_auto', 1),
    '#description' => t("display content without mouse click."),
    '#maxlength' => '1',
    '#size' => '1',
  );
  $form['content_slider_settings']['content_slider_speed'] = array(
    '#type' => 'textfield',
    '#title' => t('glide animation duration (in milliseconds)'),
    '#default_value' => variable_get('content_slider_speed', 1000),
  );
  $form['content_slider_settings']['revealtype'] = array(
    '#type' => 'textfield',
    '#title' => t('behavior of pagination links to reveal the slides: "click" or "mouseover"'),
    '#default_value' => variable_get('revealtype', 'mouseover'),
    '#description' => 'behavior of pagination links to reveal the slides: "click" or "mouseover"',
  );

  // set direction of glide: "updown", "downup", "leftright", or "rightleft"'

  //$output_body .=  'direction: "downup",
  return system_settings_form($form);
}