You are here

public function SlickViews::option_definition in Slick Views 7.2

Provides default options.

Overrides views_plugin_style::option_definition

File

./SlickViews.inc, line 26
Slick style plugin for the Views module.

Class

SlickViews
Implements a style type plugin for the Views module.

Code

public function option_definition() {
  module_load_include('inc', 'slick', 'includes/slick.global');
  $options = array(
    'slide_thumbnail' => array(
      'default' => '',
    ),
    'slide_field_wrapper' => array(
      'default' => FALSE,
    ),
    'id' => array(
      'default' => '',
    ),
  );
  foreach (slick_get_global_default_settings() as $key => $value) {
    $options[$key] = array(
      'default' => $value,
    );
  }
  drupal_alter('slick_views_options_info', $options);
  return $options + parent::option_definition();
}