You are here

function workflow_admin_ui_user_role_insert in Workflow 7

Implements hook_user_role_insert(). Make sure new roles are allowed to participate in workflows by default.

File

workflow_admin_ui/workflow_admin_ui.module, line 129
Provides administrative UI for workflow. Why it's own module? Lower code footprint and better performance. Additional credit to gcassie ( http://drupal.org/user/80260 ) for the initial push to split UI out of core workflow. We're moving…

Code

function workflow_admin_ui_user_role_insert($role) {
  user_role_change_permissions($role->rid, array(
    'participate in workflow' => 1,
  ));
}