You are here

function workflow_theme in Workflow 7

Same name and namespace in other branches
  1. 8 workflow.module \workflow_theme()
  2. 6.2 workflow.module \workflow_theme()
  3. 6 workflow.module \workflow_theme()
  4. 7.2 workflow.module \workflow_theme()

Implements hook_theme().

File

./workflow.module, line 116
Support workflows made up of arbitrary states.

Code

function workflow_theme() {
  return array(
    'workflow_history_table_row' => array(
      'variables' => array(
        'history' => NULL,
        'old_state_name' => NULL,
        'state_name' => NULL,
      ),
    ),
    'workflow_history_table' => array(
      'variables' => array(
        'rows' => array(),
        'footer' => NULL,
      ),
    ),
    'workflow_history_current_state' => array(
      'variables' => array(
        'state_name' => NULL,
        'state_system_name' => NULL,
        'sid' => NULL,
      ),
    ),
    'workflow_current_state' => array(
      'variables' => array(
        'state' => NULL,
        'state_system_name' => NULL,
        'sid' => NULL,
      ),
    ),
    'workflow_deleted_state' => array(
      'variables' => array(
        'state_name' => NULL,
        'state_system_name' => NULL,
        'sid' => NULL,
      ),
    ),
  );
}