You are here

function _pm_permission_node_access_rebuild_batch_finished in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 includes/pm.permission.inc \_pm_permission_node_access_rebuild_batch_finished()

Custom batch finish callback.

See also

pm_permission_hunt_and_update_all_child_permission()

1 string reference to '_pm_permission_node_access_rebuild_batch_finished'
pm_permission_hunt_and_update_all_child_permission in includes/pm.permission.inc
Check and performs access update if supplied pmorganization.

File

includes/pm.permission.inc, line 824
Main module file for the pm_permission module.

Code

function _pm_permission_node_access_rebuild_batch_finished($success, $results, $operations) {
  if ($success) {
    drupal_set_message(t('The <em>Project Management</em> permissions have been rebuilt.'));
  }
  else {
    drupal_set_message(t('The <em>Project Management</em> permissions have not been properly rebuilt.'), 'error');
  }
  cache_clear_all();
}