You are here

function royalslider_field_formatter_settings_summary in RoyalSlider Integration 7

Implements hook_field_formatter_settings_summary().

File

./royalslider.module, line 831
RoyalSlider module.

Code

function royalslider_field_formatter_settings_summary($field, $instance, $view_mode) {
  $display = $instance['display'][$view_mode];
  $settings = $display['settings'];
  $return = array();
  switch ($display['type']) {
    case 'royalslider':
      $optionsets = _royalslider_optionsets();
      $return[] = t('Option Set: @optionset', array(
        '@optionset' => $optionsets[$settings['optionset']],
      ));
      if (!empty($settings['skin'])) {
        $skins = _royalslider_skins();
        $return[] = t('Skin override: @skin', array(
          '@skin' => $skins[$settings['skin']],
        ));
      }
      $return[] = t('Max Images: @max', array(
        '@max' => $settings['max'],
      ));
      break;
  }
  return implode('<br />', $return);
}