You are here

function workbench_scheduler_state_labels in Workbench Scheduler 7

Same name and namespace in other branches
  1. 7.2 workbench_scheduler.module \workbench_scheduler_state_labels()

Generate an array of moderation states.

Return value

array Array of moderation states.

9 calls to workbench_scheduler_state_labels()
WorkbenchSchedulerNodeScheduleTestCase::testNodeSchedule in tests/workbench_scheduler.test
Test Node Schedule.
WorkbenchSchedulerScheduleTestCase::testScheduleCreate in tests/workbench_scheduler.test
workbench_scheduler_admin_edit_revision_schedule in ./workbench_scheduler.admin.inc
Form to edit the schedule for an existing node revision.
workbench_scheduler_admin_edit_schedule in ./workbench_scheduler.admin.inc
Display a form for adding/editing a schedule.
workbench_scheduler_admin_manage_node_schedules in ./workbench_scheduler.admin.inc
Tableselect form for current schedules applied to a node.

... See full list

File

./workbench_scheduler.module, line 587
Content scheduling for Workbench.

Code

function workbench_scheduler_state_labels() {
  $states =& drupal_static(__FUNCTION__);
  if (!isset($states)) {

    // Retrieve the moderation states from the workbench_moderation module.
    module_load_include('module', 'workbench_moderation');
    $states = workbench_moderation_state_labels();

    // Add unpublished to list since it is not actually a moderation state.
    $states['unpublished'] = t('Unpublished');
  }
  return $states;
}