You are here

function workbench_workflows_entity_revision_operation_info in Workbench Moderation 7.2

Implements hook_entity_revision_operation_info().

File

modules/workbench_workflows/workbench_workflows.module, line 357
workbench_workflows.module

Code

function workbench_workflows_entity_revision_operation_info() {
  $info = array();
  $events = workbench_workflows_options('events');
  foreach ($events as $event => $label) {
    $info['node']['workbench_moderation_' . $event] = array(
      'label' => t('Moderate to @label', array(
        '@label' => $label,
      )),
      'access callback' => TRUE,
      'callback' => 'workbench_workflows_revision_operation_process',
      'file' => __FILE__,
    );
  }
  return $info;
}