[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/ctools/includes/ -> context.menu.inc (source)

   1  <?php
   2  // $Id: context.menu.inc,v 1.2 2008/12/30 18:21:34 merlinofchaos Exp $
   3  
   4  /**
   5   * @file
   6   * Contains menu item registration for the context tool.
   7   *
   8   * The menu items registered are AJAX callbacks for the context configuration
   9   * popups. They are kept separately for organizational purposes.
  10   */
  11  
  12  function ctools_context_menu(&$items) {
  13    $base = array(
  14      'access arguments' => array('access content'),
  15      'type' => MENU_CALLBACK,
  16      'file' => 'includes/context-admin.inc',
  17    );
  18    $items['ctools/context/ajax/add'] = array(
  19      'page callback' => 'ctools_context_ajax_item_add',
  20    ) + $base;
  21    $items['ctools/context/ajax/configure'] = array(
  22      'page callback' => 'ctools_context_ajax_item_edit',
  23    ) + $base;
  24    $items['ctools/context/ajax/delete'] = array(
  25      'page callback' => 'ctools_context_ajax_item_delete',
  26    ) + $base;
  27  
  28    // For the access system
  29    $base['file'] = 'includes/context-access-admin.inc';
  30    $items['ctools/context/ajax/access/add'] = array(
  31      'page callback' => 'ctools_access_ajax_add',
  32    ) + $base;
  33    $items['ctools/context/ajax/access/configure'] = array(
  34      'page callback' => 'ctools_access_ajax_edit',
  35    ) + $base;
  36    $items['ctools/context/ajax/access/delete'] = array(
  37      'page callback' => 'ctools_access_ajax_delete',
  38    ) + $base;
  39  
  40  }


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7