You are here

function tmgmt_job_states in Translation Management Tool 7

Static method to retrieve a labeled list of all available states.

Return value

array A list of all available states.

Related topics

1 call to tmgmt_job_states()
TMGMTJob::setState in entity/tmgmt.entity.job.inc
Updates the state of the job.
1 string reference to 'tmgmt_job_states'
TMGMTJobMetadataController::entityPropertyInfo in includes/tmgmt.info.inc

File

./tmgmt.module, line 700
Main module file for the Translation Management module.

Code

function tmgmt_job_states() {
  return array(
    TMGMT_JOB_STATE_UNPROCESSED => t('Unprocessed'),
    TMGMT_JOB_STATE_ACTIVE => t('Active'),
    TMGMT_JOB_STATE_REJECTED => t('Rejected'),
    TMGMT_JOB_STATE_ABORTED => t('Aborted'),
    TMGMT_JOB_STATE_FINISHED => t('Finished'),
  );
}