function _title_hide_label_widget in Title 7
Returns the hide label form widget.
2 calls to _title_hide_label_widget()
- title_admin_settings_form in ./
title.admin.inc - Form settings for automated title_field attachment.
- title_form_field_ui_field_edit_form_alter in ./
title.module - Implements hook_form_FORM_ID_alter().
File
- ./
title.module, line 812
Code
function _title_hide_label_widget($default, $entity_label) {
return array(
'#type' => 'checkboxes',
'#title' => t('Label replacement'),
'#description' => t('Check these options if you wish to hide the main page title or each label when displaying multiple items of type %entity_label.', array(
'%entity_label' => $entity_label,
)),
'#default_value' => !empty($default['hide_label']) ? $default['hide_label'] : array(),
'#options' => array(
'page' => t('Hide page title'),
'entity' => t('Hide label in %entity_label listings', array(
'%entity_label' => drupal_strtolower($entity_label),
)),
),
);
}