You are here

function supersized_field_info in Supersized 7

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

Implements hook_field_info().

File

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

Code

function supersized_field_info() {
  return array(
    'supersized' => array(
      'label' => t('Supersized Slide'),
      'description' => t('A slide of the supersized'),
      'settings' => array(
        'uri_scheme' => variable_get('file_default_scheme', 'public'),
        'default_image' => 0,
      ),
      'instance_settings' => array(
        'file_extensions' => 'png gif jpg jpeg',
        'file_directory' => '',
        'max_filesize' => '',
        'alt_field' => 0,
        'title_field' => 0,
        'description_field' => 0,
        'link_field' => 0,
        'max_resolution' => '',
        'min_resolution' => '',
        'default_image' => 0,
        'mobile_disabled' => 1,
        'functionalities' => array(
          'autoplay' => supersized_default_settings('autoplay'),
          'start_slide' => supersized_default_settings('start_slide'),
          'stop_loop' => supersized_default_settings('stop_loop'),
          'random' => supersized_default_settings('random'),
          'slide_interval' => supersized_default_settings('slide_interval'),
          'transition' => supersized_default_settings('transition'),
          'transition_speed' => supersized_default_settings('transition_speed'),
          'new_window' => supersized_default_settings('new_window'),
          'pause_hover' => supersized_default_settings('pause_hover'),
          'keyboard_nav' => supersized_default_settings('keyboard_nav'),
          'performance' => supersized_default_settings('performance'),
          'image_protect' => supersized_default_settings('image_protect'),
          'on_new_slide' => supersized_default_settings('on_new_slide'),
          'overlay' => supersized_default_settings('overlay'),
        ),
        'dimension' => array(
          'min_width' => supersized_default_settings('min_width'),
          'min_height' => supersized_default_settings('min_height'),
          'vertical_center' => supersized_default_settings('vertical_center'),
          'horizontal_center' => supersized_default_settings('horizontal_center'),
          'fit_always' => supersized_default_settings('fit_always'),
          'fit_portrait' => supersized_default_settings('fit_portrait'),
          'fit_landscape' => supersized_default_settings('fit_landscape'),
        ),
        'components' => array(
          'arrow_nav' => supersized_default_settings('arrow_nav'),
          'slide_links' => supersized_default_settings('slide_links'),
          'thumb_links' => supersized_default_settings('thumb_links'),
          'thumbnail_navigation' => supersized_default_settings('thumbnail_navigation'),
          'progress_bar' => supersized_default_settings('progress_bar'),
          'mouse_scrub' => supersized_default_settings('mouse_scrub'),
          'control_bar' => supersized_default_settings('control_bar'),
        ),
      ),
      'default_widget' => 'supersized_slide',
      'default_formatter' => 'supersized',
    ),
  );
}