Commit f31f0b1b authored by alexpott's avatar alexpott

Issue #1981786 by Bojhan: Use "Shown|Hidden" instead of "Yes|No" for contextual links.

parent b0e63298
......@@ -1135,8 +1135,8 @@ public function optionsSummary(&$categories, &$options) {
if (!isset($this->definition['contextual links locations']) || !empty($this->definition['contextual links locations'])) {
$options['show_admin_links'] = array(
'category' => 'other',
'title' => t('Display contextual links'),
'value' => $this->getOption('show_admin_links') ? t('Yes') : t('No'),
'title' => t('Contextual links'),
'value' => $this->getOption('show_admin_links') ? t('Shown') : t('Hidden'),
'desc' => t('Change whether or not to display contextual links for this view.'),
);
}
......@@ -1408,8 +1408,8 @@ public function buildOptionsForm(&$form, &$form_state) {
case 'show_admin_links':
$form['#title'] .= t('Show contextual links on this view.');
$form['show_admin_links'] = array(
'#type' => 'radios',
'#options' => array(0 => t('No'), 1 => t('Yes')),
'#type' => 'checkbox',
'#title' => t('Show contextual links'),
'#default_value' => $this->getOption('show_admin_links'),
);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment