You are here

function _advancedqueue_status_options in Advanced Queue 7

2 calls to _advancedqueue_status_options()
advancedqueue_handler_field_status::render in views/advancedqueue_handler_field_status.inc
Render the field.
advancedqueue_handler_filter_status::get_value_options in views/advancedqueue_handler_filter_status.inc
Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.
1 string reference to '_advancedqueue_status_options'
advancedqueue_entity_property_info_alter in ./advancedqueue.module
Implements hook_entity_property_info_alter().

File

./advancedqueue.module, line 62
Helper module for advanced queuing.

Code

function _advancedqueue_status_options() {
  static $options = array(
    ADVANCEDQUEUE_STATUS_QUEUED => 'Queued',
    ADVANCEDQUEUE_STATUS_PROCESSING => 'Processing',
    ADVANCEDQUEUE_STATUS_SUCCESS => 'Processed',
    ADVANCEDQUEUE_STATUS_FAILURE => 'Failed',
    ADVANCEDQUEUE_STATUS_FAILURE_RETRY => 'Retry',
  );
  return $options;
}