You are here

function party_plugin_display_party_piece::options_summary in Party 7

Same name and namespace in other branches
  1. 8.2 includes/views/party_plugin_display_party_piece.inc \party_plugin_display_party_piece::options_summary()

Provide the summary for page options in the views UI.

This output is returned as an array.

Overrides views_plugin_display::options_summary

File

includes/views/party_plugin_display_party_piece.inc, line 28
Views plugin for party pieces.

Class

party_plugin_display_party_piece
@file Views plugin for party pieces.

Code

function options_summary(&$categories, &$options) {

  // It is very important to call the parent function here:
  parent::options_summary($categories, $options);
  $categories['party_piece'] = array(
    'title' => t('Party component'),
    'column' => 'second',
    'build' => array(
      '#weight' => -10,
    ),
  );
  $options['party_piece_path'] = array(
    'category' => 'party_piece',
    'title' => t('Party component path'),
    'value' => 'party/%id/' . $this
      ->get_option('party_piece_path'),
  );
  $options['party_piece_label'] = array(
    'category' => 'party_piece',
    'title' => t('Party component label'),
    'value' => $this
      ->get_option('party_piece_label'),
  );
}