You are here

function pmpermission_migrate_enable_permissions in Drupal PM (Project Management) 7.2

Sets site variables to tell pmpermission to handle submodule's permissions.

1 call to pmpermission_migrate_enable_permissions()
pmpermission_migrate_execute in pmpermission/includes/pmpermission.migrate.inc
Helper function to migrate permission defined by submodules.

File

pmpermission/includes/pmpermission.migrate.inc, line 180
Migration functions for the PM Permission module.

Code

function pmpermission_migrate_enable_permissions($type) {
  switch ($type) {
    case 'pmteam':
    case 'pmorganization':
    case 'pmproject':
    case 'pmtask':
    case 'pmticket':
    case 'pmtimetracking':
    case 'pmnote':
    case 'pminvoice':
    case 'pmexpense':
      variable_set("pmpermission_node_{$type}_enabled", TRUE);
      break;
    default:
      break;
  }
}