function views_content_plugin_display_ctools_context::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_content/plugins/views/views_content_plugin_display_ctools_context.inc, line 102

Class

views_content_plugin_display_ctools_context
The plugin that handles a block.

Code

public function options_summary(&$categories, &$options) {
    // It is very important to call the parent function here:
    parent::options_summary($categories, $options);
    $categories['context'] = array(
        'title' => t('Context settings'),
        'column' => 'second',
        'build' => array(
            '#weight' => -10,
        ),
    );
    $admin_title = $this->get_option('admin_title');
    if (empty($admin_title)) {
        $admin_title = t('Use view name');
    }
    if (drupal_strlen($admin_title) > 16) {
        $admin_title = drupal_substr($admin_title, 0, 16) . '...';
    }
    $options['admin_title'] = array(
        'category' => 'context',
        'title' => t('Admin title'),
        'value' => $admin_title,
    );
    $options['inherit_panels_path'] = array(
        'category' => 'context',
        'title' => t('Use Panel path'),
        'value' => $this->get_option('inherit_panels_path') ? t('Yes') : t('No'),
    );
    $options['argument_input'] = array(
        'category' => 'context',
        'title' => t('Argument input'),
        'value' => t('Edit'),
    );
}