You are here

function pmtimetracking_permission in Drupal PM (Project Management) 7

Same name and namespace in other branches
  1. 8 pmtimetracking/pmtimetracking.module \pmtimetracking_permission()
  2. 7.3 pmtimetracking/pmtimetracking.module \pmtimetracking_permission()
  3. 7.2 pmtimetracking/pmtimetracking.module \pmtimetracking_permission()

Implements hook_permission().

File

pmtimetracking/pmtimetracking.module, line 25
Main module functions for PM Timetracking.

Code

function pmtimetracking_permission() {
  return array(
    'Project Management Timetracking: access' => array(
      'title' => t('Access PM Timetracking'),
      'description' => t('Allows the user to see pages and blocks associated with the PM Timetracking module, but does not control which timetrackings are shown within them.'),
    ),
    'Project Management Timetracking: add' => array(
      'title' => t('Add PM Timetracking'),
      'description' => t('Allows the user to create a timetracking.'),
    ),
    'Project Management Timetracking: delete all' => array(
      'title' => t('Delete Any PM Timetracking'),
      'description' => t('Allows the user to delete any timetracking.'),
    ),
    'Project Management Timetracking: delete own' => array(
      'title' => t('Delete Authored PM Timetrackings'),
      'description' => t('For timetrackings authored by the user, allows the user to delete the timetracking.'),
    ),
    'Project Management Timetracking: delete of user organization' => array(
      'title' => t('Delete PM Timetrackings in own Organization'),
      'description' => t('For timetrackings assigned to the same PM Organization as a PM Person, allows the user associated with that Person to delete the timetracking.'),
    ),
    'Project Management Timetracking: edit all' => array(
      'title' => t('Edit Any PM Timetracking'),
      'description' => t('Allows the user to edit any timetracking.'),
    ),
    'Project Management Timetracking: edit own' => array(
      'title' => t('Edit Authored PM Timetracking'),
      'description' => t('For timetrackings authored by the user, allows the user to edit the timetracking.'),
    ),
    'Project Management Timetracking: edit of user organization' => array(
      'title' => t('Edit PM Timetrackings in own Organization'),
      'description' => t('For timetrackings assigned to the same PM Organization as a PM Person, allows the user associated with that Person to edit the timetracking.'),
    ),
    'Project Management Timetracking: view all' => array(
      'title' => t('View Any PM Timetracking'),
      'description' => t('Allows the user to view any timetracking and see any timetracking in lists or dropdowns elsewhere on the site.'),
    ),
    'Project Management Timetracking: view own' => array(
      'title' => t('View Authored PM Timetrackings'),
      'description' => t('For timetrackings authored by the user, allows the user to view the timetracking and see the timetracking in lists or dropdowns elsewhere on the site.'),
    ),
    'Project Management Timetracking: view of user organization' => array(
      'title' => t('View PM Timetrackings in own Organization'),
      'description' => t('For timetrackings assigned to the same PM Organization as a PM Person, allows the user associated with that Person to view the timetracking and see the timetracking in lists or dropdowns elsewhere on the site.'),
    ),
  );
}