You are here

function theme_workflow_history_table in Workflow 7

Same name and namespace in other branches
  1. 5.2 workflow.module \theme_workflow_history_table()
  2. 6.2 workflow.pages.inc \theme_workflow_history_table()
  3. 6 workflow.pages.inc \theme_workflow_history_table()
  4. 7.2 workflow.pages.inc \theme_workflow_history_table()
1 theme call to theme_workflow_history_table()
workflow_tab_page in ./workflow.pages.inc
Menu callback. Display workflow summary of a node.

File

./workflow.pages.inc, line 170
Provide user interface for changing workflow state.

Code

function theme_workflow_history_table($variables) {
  $rows = $variables['rows'];
  $footer = $variables['footer'];
  $headers = array(
    t('Date'),
    t('Old State'),
    t('New State'),
    t('By'),
    t('Comment'),
  );
  $output = theme('table', array(
    'header' => $headers,
    'rows' => $rows,
    'caption' => t('Workflow History'),
  ));
  if ($footer) {
    $output .= MARK_STATE_IS_DELETED . ' ' . t('State is no longer available.');
  }
  return $output;
}