You are here

function workflow_fields_menu in Workflow Fields 7

Same name and namespace in other branches
  1. 5 workflow_fields.module \workflow_fields_menu()
  2. 6 workflow_fields.module \workflow_fields_menu()

Implements hook_menu().

File

./workflow_fields.module, line 466
This module adds to workflow.module the ability to specify, for each state, which node fields should be visible and/or editable. It is a useful feature when workflows demand that certain information be hidden or read-only to certain roles.

Code

function workflow_fields_menu() {
  $items['admin/config/workflow/workflow_fields'] = array(
    'title' => 'Workflow Fields settings',
    'description' => 'Global settings for the behaviour of Workflow Fields.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'workflow_fields_settings',
    ),
    'access arguments' => array(
      'administer workflow',
    ),
  );
  $items['admin/config/workflow/workflow/fields_visibility/%workflow/%'] = array(
    'title' => 'Manage workflow fields',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'workflow_fields_form_workflow_admin_ui_form',
      5,
      6,
    ),
    'access arguments' => array(
      'administer workflow',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}