You are here

function views_plugin_ds_entity_view::ds_item_export_option in Display Suite 7

Same name and namespace in other branches
  1. 7.2 views/views_plugin_ds_entity_view.inc \views_plugin_ds_entity_view::ds_item_export_option()

Custom export function for alternating_fieldset items.

File

views/views_plugin_ds_entity_view.inc, line 79
Provides the Display suite views entity style plugin.

Class

views_plugin_ds_entity_view
Plugin which defines the view mode on the resulting entity object.

Code

function ds_item_export_option($indent, $prefix, $storage, $option, $definition, $parents) {
  $output = '';
  $definition = array(
    'default' => 'teaser',
  );
  foreach ($storage as $key => $value) {
    if (strstr($key, 'item_') !== FALSE) {
      $output .= parent::export_option($indent, $prefix, $storage, $key, $definition, $parents);
    }
  }
  return $output;
}