You are here

function entity_legal_menu in Entity Legal 7

Same name and namespace in other branches
  1. 7.2 entity_legal.module \entity_legal_menu()

Implements hook_menu().

File

./entity_legal.module, line 204
Entity Legal module.

Code

function entity_legal_menu() {
  $items = array();
  $items['legal/document/%entity_legal_document'] = array(
    'title callback' => 'entity_legal_document_title',
    'title arguments' => array(
      2,
    ),
    'page callback' => 'entity_legal_document_page',
    'page arguments' => array(
      2,
    ),
    'access arguments' => array(
      'view',
      2,
    ),
    'access callback' => 'entity_legal_document_access',
    'file' => 'entity_legal.pages.inc',
  );
  $items['legal/document/%entity_legal_document/%entity_legal_document_version'] = array(
    'title callback' => 'entity_legal_document_title',
    'title arguments' => array(
      2,
    ),
    'page callback' => 'entity_legal_document_page',
    'page arguments' => array(
      2,
      3,
    ),
    'access arguments' => array(
      'administer entity legal',
    ),
    'file' => 'entity_legal.pages.inc',
  );
  return $items;
}