function site_map_update_7003 in Site map 7
Implements hook_update_N().
Set the configuration page permission for user roles who have "administer site configuration" permission.
File
- ./
site_map.install, line 82 - The install and update code for the site_map module.
Code
function site_map_update_7003() {
$roles = user_roles(FALSE, 'administer site configuration');
if (count($roles) > 0 && isset($roles)) {
foreach ($roles as $rid => $role) {
user_role_grant_permissions($rid, array(
'administer site map',
));
}
}
}