function hook_menu_attribute_info_alter in Menu Attributes 7
Same name and namespace in other branches
- 8 menu_attributes.api.php \hook_menu_attribute_info_alter()
- 6.2 menu_attributes.api.php \hook_menu_attribute_info_alter()
- 6 menu_attributes.api.php \hook_menu_attribute_info_alter()
Alter the list of menu item attributes.
Parameters
$attributes: An array of attributes to be controlled by Menu Attributes, keyed by attribute name.
See also
menu_attributes_get_menu_attribute_info()
1 invocation of hook_menu_attribute_info_alter()
- menu_attributes_get_menu_attribute_info in ./
menu_attributes.module - Fetch an array of menu attributes.
File
- ./
menu_attributes.api.php, line 53 - Documentation for Menu Attributes API.
Code
function hook_menu_attribute_info_alter(array &$attributes) {
// Remove the Access Key attribute.
unset($attributes['accesskey']);
}