You are here

function lingotek_get_workbench_moderation_options in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.3 lingotek.api.inc \lingotek_get_workbench_moderation_options()
4 calls to lingotek_get_workbench_moderation_options()
lingotek_admin_profile_form in ./lingotek.admin.inc
Content defaults Form
lingotek_form_bulk_sync in ./lingotek.sync.inc
lingotek_get_node_settings_form in ./lingotek.module
lingotek_workbench_moderation_moderate in ./lingotek.batch.inc

File

./lingotek.api.inc, line 441

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;
}