You are here

function views_plugin_display::unpack_style in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 7.3 plugins/views_plugin_display.inc \views_plugin_display::unpack_style()

File

plugins/views_plugin_display.inc, line 2726
Contains the base display plugin.

Class

views_plugin_display
The default display plugin handler. Display plugins handle options and basic mechanisms for different output methods.

Code

function unpack_style($indent, $prefix, $storage, $option, $definition, $parents) {
  $output = '';
  $style_plugin = $this
    ->get_plugin();
  if ($option == 'style_plugin') {
    $type = 'style';
    $options_field = 'style_options';
    $plugin = $style_plugin;
  }
  else {
    if (!$style_plugin || !$style_plugin
      ->uses_row_plugin()) {
      return;
    }
    $type = 'row';
    $options_field = 'row_options';
    $plugin = $this
      ->get_plugin('row');

    // If the style plugin doesn't use row plugins, don't even bother.
  }
  if ($plugin) {
    return $plugin
      ->unpack_translatables($translatable, $parents);
  }
}