function config_perms_permission in Custom Permissions 7.2
Implements hook_permission().
File
- ./
config_perms.module, line 55 - Allows additional permissions to be created and managed through a administration form
Code
function config_perms_permission() {
$permissions = array();
$permissions['administer custom permissions'] = array(
'title' => 'administer custom permissions',
'description' => '',
);
$perms = config_perms_perms();
foreach ($perms as $perm) {
if ($perm->status) {
$permissions[$perm->name] = array(
'title' => check_plain($perm->name),
'description' => '',
);
}
}
return $permissions;
}