function sitemap_update_8101 in Sitemap 8
Same name and namespace in other branches
- 8.2 sitemap.install \sitemap_update_8101()
- 2.0.x sitemap.install \sitemap_update_8101()
Change sitemap configuration page permission to administer sitemap.
File
- ./
sitemap.install, line 11 - Installation functions for Sitemap module.
Code
function sitemap_update_8101() {
$roles = user_roles(FALSE, 'administer site configuration');
if (!empty($roles)) {
foreach ($roles as $rid => $role) {
user_role_grant_permissions($rid, [
'administer sitemap',
]);
}
}
}