function views_attach_plugin_display_profile::options_summary in Views attach 6
Same name and namespace in other branches
- 6.2 views_attach_plugin_display_profile.inc \views_attach_plugin_display_profile::options_summary()
- 7.2 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.
File
- ./
views_attach_plugin_display_profile.inc, line 22
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,
);
$options['default_argument'] = array(
'category' => 'profile',
'title' => t('Default argument'),
'value' => $this
->get_option('default_argument') === 'uid' ? t('Yes') : t('No'),
);
}