You are here

function workbench_moderation_entity_revision_operation_info in Revision scheduler 7

Implements hook_entity_revision_operation_info().

File

./revision_scheduler.module, line 914

Code

function workbench_moderation_entity_revision_operation_info() {
  $info = array();
  $states = workbench_moderation_state_labels();
  foreach ($states as $state => $label) {
    $info['node']['workbench_moderation_' . $state] = array(
      'label' => t('Moderate to @label', array(
        '@label' => $label,
      )),
      'access callback' => TRUE,
      'callback' => 'workbench_moderation_revision_operation_process',
    );
  }
  return $info;
}