function pm_permission in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pm.module \pm_permission()
- 7 pm.module \pm_permission()
- 7.2 pm.module \pm_permission()
Implements hook_permission().
1 string reference to 'pm_permission'
- pm_update_7300 in ./
pm.install - Include pmpermission module into core.
File
- ./
pm.module, line 42 - Main module file for the Project Management module.
Code
function pm_permission() {
$permissions = array(
'administer pm permission' => array(
'title' => t('Administer Project Management Permission'),
'restrict access' => TRUE,
),
);
// Generate override node permissions for all applicable node types.
foreach (pm_permission_get_enabled_types() as $bundle_name) {
$permissions += pm_permission_permission_per_bundle($bundle_name);
}
$permissions += array(
'Project Management: access dashboard' => array(
'title' => t('Access Dashboard'),
'description' => t('Allows the user to access the Project Management dashboard. The items included on the dashboard are set through permissions on the individual modules that provide those links.'),
),
'Project Management: access administration pages' => array(
'title' => t('Administer Project Management'),
'description' => t('Allow the user to perform administrative tasks on Project Management modules, such as altering configuration.'),
),
);
return $permissions;
}