function theme_workflow_history_table_row in Workflow 7.2
Same name and namespace in other branches
- 5.2 workflow.module \theme_workflow_history_table_row()
- 6.2 workflow.pages.inc \theme_workflow_history_table_row()
- 6 workflow.pages.inc \theme_workflow_history_table_row()
- 7 workflow.pages.inc \theme_workflow_history_table_row()
Theme one WorkflowTansition in a workflow history table row.
$old_state_name and $state_name must be run through check_plain(t()) prior to calling this theme function.
1 theme call to theme_workflow_history_table_row()
- workflow_tab_page in ./workflow.pages.inc 
- Menu callback. Display workflow summary of a node.
File
- ./workflow.pages.inc, line 171 
- Provide user interface for changing workflow state.
Code
function theme_workflow_history_table_row($variables) {
  $row = array();
  $old_state_name = $variables['old_state_name'];
  $state_name = $variables['state_name'];
  $transition = $variables['transition'];
  $row = array(
    'data' => array(
      array(
        'data' => format_date($transition->stamp),
        'class' => array(
          'timestamp',
        ),
      ),
      array(
        'data' => $transition->field_name,
        'class' => array(
          'field-name',
        ),
      ),
      array(
        'data' => $old_state_name,
        'class' => array(
          'previous-state-name',
        ),
      ),
      array(
        'data' => $state_name,
        'class' => array(
          'state-name',
        ),
      ),
      array(
        'data' => theme('username', array(
          'account' => $transition
            ->getUser(),
        )),
        'class' => array(
          'user-name',
        ),
      ),
      array(
        'data' => filter_xss($transition->comment),
        'class' => array(
          'log-comment',
        ),
      ),
      $variables['extra'],
    ),
    'class' => array(
      'workflow_history_row',
    ),
  );
  return $row;
}