You are here

function ctools_content_menu in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 includes/content.menu.inc \ctools_content_menu()

@file Contains menu item registration for the content tool.

The menu items registered are AJAX callbacks for the things like autocomplete and other tools needed by the content types.

File

includes/content.menu.inc, line 11
Contains menu item registration for the content tool.

Code

function ctools_content_menu(&$items) {
  $base = array(
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'includes/content.menu.inc',
  );
  $items['ctools/autocomplete/%'] = array(
    'page callback' => 'ctools_content_autocomplete_entity',
    'page arguments' => array(
      2,
    ),
  ) + $base;
}