You are here

function workflow_fields_menu in Workflow Fields 5

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

File

./workflow_fields.module, line 342
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($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/workflow_fields',
      'title' => t('Workflow Fields settings'),
      'description' => t('Global settings for the behaviour of Workflow Fields.'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        '_workflow_fields_settings',
      ),
      'access' => user_access('administer workflow'),
    );
  }
  return $items;
}