function pmperson_permission in Drupal PM (Project Management) 7
Same name and namespace in other branches
- 8 pmperson/pmperson.module \pmperson_permission()
- 7.3 pmperson/pmperson.module \pmperson_permission()
- 7.2 pmperson/pmperson.module \pmperson_permission()
Implements hook_permission().
File
- pmperson/
pmperson.module, line 41
Code
function pmperson_permission() {
return array(
'Project Management Person: access' => array(
'title' => t('Access PM Person'),
'description' => t('Allows the user to see pages and blocks associated with the PM Person module, but does not control which persons are shown within them.'),
),
'Project Management Person: add' => array(
'title' => t('Add PM Person'),
'description' => t('Allows the user to create a person.'),
),
'Project Management Person: delete all' => array(
'title' => t('Delete Any PM Person'),
'description' => t('Allows the user to delete any person.'),
),
'Project Management Person: delete own' => array(
'title' => t('Delete Authored PM Person'),
'description' => t('For persons authored by the user, allows the user to delete the person.'),
),
'Project Management Person: delete of user organization' => array(
'title' => t('Delete PM Persons in own Organization'),
'description' => t('For persons assigned to the same PM Organization as other PM Persons, allows the user associated with the Person to delete the person.'),
),
'Project Management Person: delete when linked to own user account' => array(
'title' => t('Delete PM Person linked to own user account'),
'description' => t('For persons assigned to a user account, allows that assigned user to delete the person'),
),
'Project Management Person: edit all' => array(
'title' => t('Edit Any PM Person'),
'description' => t('Allows the user to edit any person.'),
),
'Project Management Person: edit own' => array(
'title' => t('Edit Authored PM Person'),
'description' => t('For persons authored by the user, allows the user to edit the person.'),
),
'Project Management Person: edit of user organization' => array(
'title' => t('Edit PM Persons in own Organization'),
'description' => t('For persons assigned to the same PM Organization as a Project Management Person, allows the user associated with that Person to edit the person.'),
),
'Project Management Person: edit when linked to own user account' => array(
'title' => t('Edit PM Person linked to own user account'),
'description' => t('For persons assigned to a user account, allows that assigned user to edit the person'),
),
'Project Management Person: view all' => array(
'title' => t('View Any PM Person'),
'description' => t('Allows the user to view any person and see any person in lists or dropdowns elsewhere on the site.'),
),
'Project Management Person: view own' => array(
'title' => t('View Authored PM Person'),
'description' => t('For persons authored by the user, allows the user to view the person and see the person in lists or dropdowns elsewhere on the site.'),
),
'Project Management Person: view of user organization' => array(
'title' => t('View PM Persons in own Organization'),
'description' => t('For persons assigned to the same PM Organization as a PM Person, allows the user associated with that Person to view the person and see the person in lists or dropdowns elsewhere on the site.'),
),
'Project Management Person: view when linked to own user account' => array(
'title' => t('View PM Person linked to own user account'),
'description' => t('For persons assigned to a user account, allows that assigned user to view the person and see the person in lists or dropdowns elsewhere on the site.'),
),
);
}