function theme_workflow_current_state in Workflow 7
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.2 workflow_node/workflownode.module \theme_workflow_current_state()
Theme the current workflow state as top line of History tab.
2 theme calls to theme_workflow_current_state()
- workflow_node_view in ./
workflow.node.inc - Implements hook_node_view().
- workflow_tab_page in ./
workflow.pages.inc - Menu callback. Display workflow summary of a node.
File
- ./
workflow.node.inc, line 10 - Node specific functions, 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>';
}