You are here

function _workflow_user_roles in Workflow 7

Internally cache the user roles as core doesn't.

2 calls to _workflow_user_roles()
_workflow_rids_to_roles in ./workflow.features.inc
Translates a string of rids to role names for exporting.
_workflow_roles_to_rids in ./workflow.features.inc
Translates a role string to RIDs for importing.

File

./workflow.features.inc, line 228
Integrates workflow with features.

Code

function _workflow_user_roles($reset = FALSE) {
  $roles =& drupal_static(__FUNCTION__);
  if ($reset || !isset($roles)) {
    $roles = user_roles();
  }
  return $roles;
}