You are here

function views_attach_plugin_display_profile::options_summary in Views attach 7.2

Same name and namespace in other branches
  1. 6.2 views_attach_plugin_display_profile.inc \views_attach_plugin_display_profile::options_summary()
  2. 6 views_attach_plugin_display_profile.inc \views_attach_plugin_display_profile::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

./views_attach_plugin_display_profile.inc, line 23

Class

views_attach_plugin_display_profile
The plugin that handles a user profile.

Code

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

  // It is very important to call the parent function here:
  parent::options_summary($categories, $options);
  $categories['profile'] = array(
    'title' => t('Profile settings'),
  );
  $category = $this
    ->get_option('category');
  if (empty($category)) {
    $category = t('Default');
  }
  $options['category'] = array(
    'category' => 'profile',
    'title' => t('Category'),
    'value' => $category,
  );
  $weight = $this
    ->get_option('weight');
  if (empty($weight)) {
    $weight = 10;
  }
  $options['weight'] = array(
    'category' => 'profile',
    'title' => t('Weight'),
    'value' => $weight,
  );
  $argument_mode = $this
    ->get_option('argument_mode');
  $options['arguments'] = array(
    'category' => 'profile',
    'title' => t('Arguments'),
    'value' => empty($argument_mode) ? t('None') : check_plain($argument_mode),
  );
}