function environment_workflow_load in Environment 6
Get the current assortment of Workflows.
Parameters
$name: Name of the workflow to retrieve information on. Use 'default' to specify default or NULL workflow.
$reset: Optional; reset the static cache.
Return value
Array
7 calls to environment_workflow_load()
- environment_admin_settings in ./
environment.admin.inc - @file Settings for Environment module
- environment_drush_render_environment in ./
environment.drush.inc - Render the specified environment definition as a descriptive one-liner.
- environment_requirements in ./
environment.install - Implementation of hook_requirements().
- environment_switch_environment_submit in ./
environment.admin.inc - Submit callback to switch environment if changed.
- environment_token_list in plugins/
environment.token.inc - Implementation of hook_token_list().
File
- ./
environment.module, line 271
Code
function environment_workflow_load($name = NULL, $reset = FALSE) {
static $workflows;
if (empty($workflows) || $reset) {
$workflows = module_invoke_all('environment_workflow');
drupal_alter('environment_workflow', $workflows);
}
return isset($name) ? $workflows[$name] : $workflows;
}