You are here

function supersized_default_settings in Supersized 7

Same name and namespace in other branches
  1. 8 supersized.field.inc \supersized_default_settings()

A helper function to get supersized default settings.

3 calls to supersized_default_settings()
supersized_field_info in ./supersized.field.inc
Implements hook_field_info().
supersized_field_instance_settings_form in ./supersized.field.inc
Implements hook_field_instance_settings_form().
supersized_node_settings_form in ./supersized.module
Supersized setting form for node.

File

./supersized.field.inc, line 76
Implement an image field, based on the file module's file field.

Code

function supersized_default_settings($setting) {
  $settings = array(
    'autoplay' => 1,
    'start_slide' => 1,
    'stop_loop' => 0,
    'random' => 0,
    'slide_interval' => 4000,
    'transition' => 1,
    'transition_speed' => 750,
    'new_window' => 0,
    'pause_hover' => 0,
    'keyboard_nav' => 1,
    'performance' => 1,
    'image_protect' => 0,
    'on_new_slide' => 'on_new_slide_callback',
    'min_width' => 0,
    'min_height' => 0,
    'vertical_center' => 1,
    'horizontal_center' => 1,
    'fit_always' => 0,
    'fit_portrait' => 1,
    'fit_landscape' => 0,
    'arrow_nav' => 0,
    'slide_links' => 0,
    'thumb_links' => 1,
    'thumbnail_navigation' => 0,
    'progress_bar' => 1,
    'mouse_scrub' => 0,
    'control_bar' => 1,
    'mobile_disabled' => 1,
    'overlay' => 'none',
  );
  return isset($settings[$setting]) ? $settings[$setting] : NULL;
}