You are here

function state_flow_admin_paths in State Machine 7

Same name and namespace in other branches
  1. 7.3 modules/state_flow/state_flow.module \state_flow_admin_paths()
  2. 7.2 modules/state_flow/state_flow.module \state_flow_admin_paths()

Implements hook_admin_paths().

File

modules/state_flow/state_flow.module, line 62
An implementation of node revision workflow for Drupal based on the State Machine system.

Code

function state_flow_admin_paths() {
  if (variable_get('node_admin_theme')) {
    $paths = array(
      'node/*/workflow' => TRUE,
      'node/*/revisions/*/edit' => TRUE,
      'node/*/revisions/*/workflow' => TRUE,
      'node/*/revisions/*/workflow/*' => TRUE,
    );
    return $paths;
  }
}