You are here

function royalsliderfield_field_formatter_settings_form in RoyalSlider Integration 7

Implements hook_field_formatter_settings_form().

File

contrib/royalsliderfield/royalsliderfield.module, line 118
RoyalSlider Field module.

Code

function royalsliderfield_field_formatter_settings_form($field, $instance, $view_mode, $form, &$form_state) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $element = array();
  if ($display['type'] == 'royalsliderfields_formatter') {
    $element['royalslider_optionset'] = array(
      '#type' => 'select',
      '#title' => t('RoyalSlider optionset'),
      '#options' => _royalslider_optionsets(),
      '#default_value' => $settings['royalslider_optionset'],
    );
  }
  return $element;
}