You are here

function workflow_load_by_name in Workflow 7.2

7 calls to workflow_load_by_name()
WorkflowFeaturesController::export in ./workflow.features.inc
Generates the result for hook_features_export().
workflow_access_features_export in workflow_access/workflow_access.features.inc
Implements hook_features_export().
workflow_access_features_export_render in workflow_access/workflow_access.features.inc
Implements hook_features_export_render().
workflow_access_features_rebuild in workflow_access/workflow_access.features.inc
Implements hook_features_rebuild().
workflow_create in ./workflow.entity.inc

... See full list

File

./workflow.entity.inc, line 474
Integrates workflow with entity API.

Code

function workflow_load_by_name($name) {
  $workflows = entity_load_multiple_by_name('Workflow', array(
    $name,
  ));
  return reset($workflows);
}