You are here

function views_custom_conditions_plugin_display_extender_code::options_summary in Views Custom Conditions 7

Summarizes new option.

Lists the fields as either 'Yes' if there is text or 'None' otherwise and categorizes the fields under the 'Other' category.

Overrides views_plugin_display_extender::options_summary

File

./views_custom_conditions_plugin_display_extender_code.inc, line 66
Contains the class to extend views display plugins browse all link.

Class

views_custom_conditions_plugin_display_extender_code
The plugin that added additional setting to views edit form.

Code

function options_summary(&$categories, &$options) {
  $new_option = check_plain(trim($this->display
    ->get_option('views_custom_conditions')));
  if ($new_option) {
    $new_option = t('Set');
  }
  else {
    $new_option = t('Not Set');
  }
  $options['views_custom_conditions'] = array(
    'category' => 'other',
    'title' => t('Views Custom Conditions'),
    'value' => $new_option,
    'desc' => t('Add some option.'),
  );
}