function custom_breadcrumbs_identifiers_form_alter in Custom Breadcrumbs 7.2
Same name and namespace in other branches
- 6.2 custom_breadcrumbs_identifiers/custom_breadcrumbs_identifiers.module \custom_breadcrumbs_identifiers_form_alter()
Implements hook_form_alter().
File
- custom_breadcrumbs_identifiers/
custom_breadcrumbs_identifiers.module, line 197 - Provide special identifiers for use with custom breadcrumbs.
Code
function custom_breadcrumbs_identifiers_form_alter(&$form, $form_state, $form_id) {
if ($form_id == 'custom_breadcrumbs_admin_settings') {
$form['adv_settings']['custom_breadcrumbs_identifiers']['cb_identifier_options']['custom_breadcrumbs_none_span'] = array(
'#type' => 'checkbox',
'#title' => t("Wrap plain text breadcrumbs in <span> tags."),
'#description' => t("If enabled, breadcrumbs that use <none> for the link will be wrapped in <span> tags with the custom-breadcrumbs-none class identifier and any other applicable classes."),
// @codingStandardsIgnoreLine
'#default_value' => variable_get('custom_breadcrumbs_none_span', FALSE),
);
}
}