You are here

function backstretch_formatter_options in Backstretch 7.2

Helper function which returns the options.

Return value

array An array which contains the options. Every item has a label and their Javascript name. Optionally with a suffix which will be append to the value in summary.

3 calls to backstretch_formatter_options()
backstretch_context_reaction_backstretch::execute in plugins/backstretch_context_reaction_backstretch.inc
backstretch_field_formatter_settings_summary in ./backstretch.module
Implements hook_field_formatter_settings_summary().
backstretch_field_formatter_view in ./backstretch.module
Implements hook_field_formatter_view().

File

./backstretch.module, line 459
Main file for Backstretch Formatter module.

Code

function backstretch_formatter_options() {
  return array(
    'field' => array(
      'label' => t('Image field'),
    ),
    'image_style' => array(
      'label' => t('Image style'),
      'js' => '',
    ),
    'element_other' => array(
      'label' => t('Attach to'),
      'js' => 'selector',
    ),
    'duration' => array(
      'label' => t('Time between slides'),
      'js' => 'duration',
      'suffix' => 'ms',
    ),
    'fade' => array(
      'label' => t('Fade speed'),
      'js' => 'fade',
    ),
    'delta' => array(
      'label' => t('Image to show'),
    ),
    'center_x' => array(
      'label' => t('Horizontally centerd'),
      'js' => 'centeredX',
      'type' => 'bool',
    ),
    'center_y' => array(
      'label' => t('Vertically centered'),
      'js' => 'centeredY',
      'type' => 'bool',
    ),
    'random' => array(
      'label' => t('Random'),
      'type' => 'bool',
    ),
  );
}