function menu_attributes_update_7001 in Menu Attributes 7
Grant the 'administer menu attributes' permission to roles that currently have the 'administer menu' permission.
File
- ./
menu_attributes.install, line 91 - Install, update and uninstall functions for the menu_attributes module.
Code
function menu_attributes_update_7001() {
$roles = user_roles(FALSE, 'administer menu');
foreach ($roles as $rid => $role) {
user_role_grant_permissions($rid, array(
'administer menu attributes',
));
}
return t("Every role with the 'administer menu' permission has also received the 'administer menu attributes' permission.");
}