You are here

function workflow_admin_paths_alter in Workflow 7

Same name and namespace in other branches
  1. 7.2 workflow.module \workflow_admin_paths_alter()

Implements hook_admin_paths_alter(). If node edits are done in admin mode, then workflow will be too.

File

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

Code

function workflow_admin_paths_alter(&$paths) {
  if (isset($path['node/*/edit'])) {
    $path['node/*/workflow'] = $path['node/*/edit'];
  }
}