function theme_workflow_current_state in Workflow 7.2
Same name and namespace in other branches
- 5.2 workflow.module \theme_workflow_current_state()
- 6.2 workflow.pages.inc \theme_workflow_current_state()
- 6 workflow.pages.inc \theme_workflow_current_state()
- 7 workflow.node.inc \theme_workflow_current_state()
Theme the current workflow state as top line of History tab.
1 theme call to theme_workflow_current_state()
- workflow_state_formatter in ./
workflow.module - Creates a form element to show the current value of a Workflow state.
File
- workflow_node/
workflownode.module, line 29 - Hooks and functions for the 'conventional' (version D5/D6/D7.1) Workflow Node, remnants of nodeapi.
Code
function theme_workflow_current_state($variables) {
$state = $variables['state'];
return '<div class="workflow-current-state ' . 'workflow-current-sid-' . intval($variables['sid']) . ' ' . drupal_html_class($state) . '">' . t('Current state: <span class="state">@state</span>', array(
'@state' => $state,
)) . '</div>';
}