function webform_workflow_state_color_options_list in Webform Workflow 7
Get a list of possible state colors.
Return value
array An associative array of state colors. The array values are human-readable names and the array keys are machine names.
2 calls to webform_workflow_state_color_options_list()
- WebformWorkflowStateInlineEntityFormController::formatColor in includes/
webform_workflow_state.inline_entity_form.inc - Formatter callback for a state color.
- webform_workflow_state_form_attach in includes/
webform_workflow_state.forms.inc - Attach form elements for a workflow state form.
1 string reference to 'webform_workflow_state_color_options_list'
File
- ./
webform_workflow.module, line 1009 - A simple workflow module for webforms.
Code
function webform_workflow_state_color_options_list() {
return array(
'' => t('None'),
'green' => t('Green'),
'amber' => t('Amber'),
'red' => t('Red'),
'blue' => t('Blue'),
'purple' => t('Purple'),
'yellow' => t('Yellow'),
);
}