You are here

function lingotek_get_workbench_moderation_options in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.4 lingotek.api.inc \lingotek_get_workbench_moderation_options()
4 calls to lingotek_get_workbench_moderation_options()
lingotek_admin_content_defaults_form in ./lingotek.admin.inc
Content defaults Form
lingotek_form_bulk_sync in ./lingotek.sync.inc
lingotek_form_node_form_alter in ./lingotek.module
Implements hook_form_BASE_FORM_ID_alter().
lingotek_workbench_moderation_moderate in ./lingotek.batch.inc

File

./lingotek.api.inc, line 314

Code

function lingotek_get_workbench_moderation_options() {
  $options = array();
  $options['no_moderation'] = 'Leave at the current state';
  $options['increment'] = 'Increment to the next state';
  $states = workbench_moderation_states();
  foreach ($states as $array) {
    $options[] = 'Change to ' . $array->name;
  }
  return $options;
}