You are here

state_machine.api.php in State Machine 8

Hooks provided by the State Machine module.

File

state_machine.api.php
View source
<?php

/**
 * @file
 * Hooks provided by the State Machine module.
 */

/**
 * @addtogroup hooks
 * @{
 */

/**
 * Alter workflows.
 *
 * @param array $workflows
 *   Workflow definitions, keyed by plugin ID.
 */
function hook_workflows_alter(array &$workflows) {
  $workflows['default']['label'] = 'Altered label';
}

/**
 * Alter workflow groups.
 *
 * @param array $workflow_groups
 *   Workflow group definitions, keyed by plugin ID.
 */
function hook_workflow_groups_alter(array &$workflow_groups) {
  $workflow_groups['default']['label'] = 'Altered label';
}

/**
 * @} End of "addtogroup hooks".
 */

Functions

Namesort descending Description
hook_workflows_alter Alter workflows.
hook_workflow_groups_alter Alter workflow groups.