You are here

function workflow_access_menu in Workflow 7

Same name and namespace in other branches
  1. 7.2 workflow_access/workflow_access.module \workflow_access_menu()

Implements hook_menu().

File

workflow_access/workflow_access.module, line 10
Provides node access permissions based on workflow states.

Code

function workflow_access_menu() {
  $items = array();
  $items["admin/config/workflow/access/%workflow"] = array(
    'title' => 'Access',
    'access arguments' => array(
      'administer workflow',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'workflow_access_form',
      4,
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}