function config_perms_disable in Custom Permissions 6
Implementation of hook_disable().
File
- ./
config_perms.module, line 65 - Adds more granular permissions for items under 'administer site configuration'.
Code
function config_perms_disable() {
$resetcallback = serialize(array(
'administer site configuration',
));
db_query("UPDATE {menu_router} SET access_callback = '%s', access_arguments = '%s' WHERE access_callback = '%s'", 'user_access', $resetcallback, 'config_perms_access_callback');
}