You are here

function workflow_admin_ui_update_7001 in Workflow 7.2

Same name and namespace in other branches
  1. 7 workflow_admin_ui/workflow_admin_ui.install \workflow_admin_ui_update_7001()

Gives all user roles the ability to participate in workflows.

This is only done for updating. New installs must set the roles themselves.

File

workflow_admin_ui/workflow_admin_ui.install, line 28
Install, update and uninstall functions for the workflow_admin_ui module.

Code

function workflow_admin_ui_update_7001(&$sandbox) {
  $perms = array(
    'participate in workflow' => 1,
  );
  foreach (user_roles() as $rid => $name) {
    user_role_change_permissions($rid, $perms);
  }
  return _workflow_admin_ui_participate();
}