You are here

public function WebformWorkflowStateInlineEntityFormController::formatColor in Webform Workflow 7

Formatter callback for a state color.

Parameters

string $color: The color (as a machine name).

Return value

string An HTML string.

File

includes/webform_workflow_state.inline_entity_form.inc, line 71
Defines the inline entity form controller for webform workflow states.

Class

WebformWorkflowStateInlineEntityFormController
@file Defines the inline entity form controller for webform workflow states.

Code

public function formatColor($color) {
  $color_labels = webform_workflow_state_color_options_list();
  return theme('webform_workflow_state_color', array(
    'content' => $color_labels[$color],
    'color' => $color,
  ));
}