You are here

function tmgmt_local_task_statuses in Translation Management Tool 7

Retrieve a labeled list of all available statuses.

Return value

array A list of all available statuses.

2 calls to tmgmt_local_task_statuses()
TMGMTLocalTask::setStatus in translators/tmgmt_local/entity/tmgmt_local.entity.task.inc
Updates the status of the task.
tmgmt_local_task_form in translators/tmgmt_local/includes/tmgmt_local.pages.inc
Entity API form the local task entity.
1 string reference to 'tmgmt_local_task_statuses'
TMGMTLocalTaskMetadataController::entityPropertyInfo in translators/tmgmt_local/includes/tmgmt_local.info.inc

File

translators/tmgmt_local/tmgmt_local.module, line 520
Main module file for the local translation module.

Code

function tmgmt_local_task_statuses() {
  return $statuses = array(
    TMGMT_LOCAL_TASK_STATUS_UNASSIGNED => t('Unassigned'),
    TMGMT_LOCAL_TASK_STATUS_PENDING => t('Pending'),
    TMGMT_LOCAL_TASK_STATUS_COMPLETED => t('Completed'),
    TMGMT_LOCAL_TASK_STATUS_REJECTED => t('Rejected'),
    TMGMT_LOCAL_TASK_STATUS_CLOSED => t('Closed'),
  );
}