You are here

function tmgmt_job_item_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

4 calls to tmgmt_job_item_states()
TMGMTJobItem::setState in entity/tmgmt.entity.job_item.inc
Updates the state of the job item.
tmgmt_handler_field_tmgmt_job_item_count::options_form in views/handlers/tmgmt_handler_field_tmgmt_job_item_count.inc
Default options form provides the label widget that all fields should have.
tmgmt_i18n_string_form_i18n_string_translate_page_overview_form_alter in sources/i18n_string/tmgmt_i18n_string.module
Implements hook_form_ID_alter().
tmgmt_local_task_handler_field_job_item_count::options_form in translators/tmgmt_local/views/handlers/tmgmt_local_task_handler_field_job_item_count.inc
Default options form provides the label widget that all fields should have.
1 string reference to 'tmgmt_job_item_states'
TMGMTJobItemMetadataController::entityPropertyInfo in includes/tmgmt.info.inc

File

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

Code

function tmgmt_job_item_states() {
  return array(
    TMGMT_JOB_ITEM_STATE_ACTIVE => t('In progress'),
    TMGMT_JOB_ITEM_STATE_REVIEW => t('Needs review'),
    TMGMT_JOB_ITEM_STATE_ACCEPTED => t('Accepted'),
    TMGMT_JOB_ITEM_STATE_ABORTED => t('Aborted'),
  );
}