You are here

function slick_get_options in Slick Carousel 7

Same name and namespace in other branches
  1. 7.3 slick.deprecated.inc \slick_get_options()
  2. 7.2 slick.module \slick_get_options()

Defines a list of options available for slick.

6 calls to slick_get_options()
slick_field_formatter_info in ./slick.module
Implements hook_field_formatter_info().
slick_field_formatter_settings_form in ./slick.module
Implements hook_field_formatter_settings_form().
slick_plugin_style_slick::options_form in ./slick_plugin_style_slick.inc
Provide a form to edit options for this plugin.
slick_plugin_style_slick::option_definition in ./slick_plugin_style_slick.inc
Information about options for all kinds of purposes will be held here.
template_preprocess_slick in theme/slick.theme.inc
Implements template_preprocess_slick().

... See full list

File

./slick.module, line 138
Slick carousel for Drupal.

Code

function slick_get_options() {
  $options = array();
  $options['accessibility'] = array(
    'name' => 'accessibility',
    'title' => t('Accessibility'),
    'description' => t('Enables tabbing and arrow key navigation'),
    'type' => 'boolean',
    'default' => TRUE,
  );
  $options['vertical'] = array(
    'name' => 'vertical',
    'title' => t('Vertical'),
    'description' => t('Vertical slide direction'),
    'type' => 'boolean',
    'default' => FALSE,
  );
  $options['autoplay'] = array(
    'name' => 'autoplay',
    'title' => t('Autoplay'),
    'description' => t('Enables Autoplay'),
    'type' => 'boolean',
    'default' => FALSE,
  );
  $options['autoplayspeed'] = array(
    'name' => 'autoplaySpeed',
    'title' => t('Autoplay speed'),
    'description' => t('Autoplay Speed in milliseconds'),
    'type' => 'integer',
    'default' => 3000,
  );
  $options['arrows'] = array(
    'name' => 'arrows',
    'title' => t('Arrows'),
    'description' => t('Show prev/next arrows'),
    'type' => 'boolean',
    'default' => TRUE,
  );
  $options['dots'] = array(
    'name' => 'dots',
    'title' => t('Dots'),
    'description' => t('Current slide indicator dots'),
    'type' => 'boolean',
    'default' => FALSE,
  );
  $options['draggable'] = array(
    'name' => 'draggable',
    'title' => t('Draggable'),
    'description' => t('Enable mouse dragging'),
    'type' => 'boolean',
    'default' => TRUE,
  );
  $options['swipe'] = array(
    'name' => 'swipe',
    'title' => t('Swipe'),
    'description' => t('Enable swiping'),
    'type' => 'boolean',
    'default' => TRUE,
  );
  $options['touchmove'] = array(
    'name' => 'touchMove',
    'title' => t('TouchMove'),
    'description' => t('Enable slide motion with touch'),
    'type' => 'boolean',
    'default' => TRUE,
  );
  $options['touchthreshold'] = array(
    'name' => 'touchThreshold',
    'title' => t('touchThreshold'),
    'description' => t('Swipe distance threshold'),
    'type' => 'integer',
    'default' => 5,
  );
  $options['fade'] = array(
    'name' => 'fade',
    'title' => t('Fade'),
    'description' => t('Enable fade'),
    'type' => 'boolean',
    'default' => FALSE,
  );
  $options['infinite'] = array(
    'name' => 'infinite',
    'title' => t('Infinite'),
    'description' => t('Infinite loop sliding'),
    'type' => 'boolean',
    'default' => TRUE,
  );
  $options['cssease'] = array(
    'name' => 'cssEase',
    'title' => t('cssEase'),
    'description' => t('CSS3 Animation Easing'),
    'type' => 'varchar',
    'default' => 'ease',
  );
  $options['slidestoshow'] = array(
    'name' => 'slidesToShow',
    'title' => t('Slides to show'),
    'description' => t('Number of slides to show'),
    'type' => 'integer',
    'default' => 1,
  );
  $options['slidestoscroll'] = array(
    'name' => 'slidesToScroll',
    'title' => t('Slides to scroll'),
    'description' => t('Number of slides to scroll'),
    'type' => 'integer',
    'default' => 1,
  );
  $options['speed'] = array(
    'name' => 'speed',
    'title' => t('Speed'),
    'description' => t('Slide speed in milliseconds'),
    'type' => 'integer',
    'default' => 300,
  );
  return $options;
}