You are here

function theme_state_flow_states in State Machine 6

Theme function to show states of a node

Parameters

array $states:

Return value

string

1 theme call to theme_state_flow_states()
state_flow_events in modules/state_flow/state_flow.module
Show the states as a node tab

File

modules/state_flow/state_flow.module, line 54
A base implementation of the state machine class and its relationship to revisions

Code

function theme_state_flow_states($states) {
  $header = array(
    t('Vid'),
    t('Nid'),
    t('State'),
    t('Timestamp'),
  );
  $rows = array();
  foreach ($states as $state) {
    $rows[] = array(
      $state->vid,
      $state->nid,
      $state->state,
      $state->timestamp,
    );
  }
  return theme('table', $header, $rows);
}