You are here

function cmis_browser_menu in CMIS API 6.3

Same name and namespace in other branches
  1. 6.4 cmis_browser/cmis_browser.module \cmis_browser_menu()
  2. 6 cmis_browser/cmis_browser.module \cmis_browser_menu()
  3. 6.2 cmis_browser/cmis_browser.module \cmis_browser_menu()
  4. 7.2 cmis_browser/cmis_browser.module \cmis_browser_menu()
  5. 7 cmis_browser/cmis_browser.module \cmis_browser_menu()

Implementation of hook_menu().

File

cmis_browser/cmis_browser.module, line 7

Code

function cmis_browser_menu() {
  $items = array();
  $items['cmis/browser'] = array(
    'type' => MENU_NORMAL_ITEM,
    'title' => t('CMIS Repository'),
    'page callback' => 'cmis_browser_content_get',
    'access callback' => 'user_access',
    'access arguments' => array(
      'access cmis',
    ),
    'file' => 'cmis_browser.content_get.inc',
  );
  $items['cmis/delete'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'cmis_browser_content_delete_confirm',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'delete cmis',
    ),
    'file' => 'cmis_browser.content_delete.inc',
  );
  $items['cmis/properties'] = array(
    'type' => MENU_CALLBACK,
    'page callback' => 'cmis_browser_content_properties',
    'access callback' => 'user_access',
    'access arguments' => array(
      'access cmis',
    ),
    'file' => 'cmis_browser.content_properties.inc',
  );
  $items['cmis/autocomplete'] = array(
    'title' => t('cmis path autocomplete'),
    'page callback' => 'cmis_browser_autocomplete',
    'access callback' => 'user_access',
    'access arguments' => array(
      'access cmis',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'cmis_browser.content_autocomplete.inc',
  );
  $items['cmis/tree'] = array(
    'title' => t('cmis tree nav'),
    'page callback' => 'cmis_browser_tree',
    'access callback' => 'user_access',
    'access arguments' => array(
      'access cmis',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'cmis_browser.content_autocomplete.inc',
  );
  return $items;
}