Projet

Général

Profil

Paste
Télécharger (1,23 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ctools / includes / context.menu.inc @ 3aa14731

1
<?php
2

    
3
/**
4
 * @file
5
 * Contains menu item registration for the context tool.
6
 *
7
 * The menu items registered are AJAX callbacks for the context configuration
8
 * popups. They are kept separately for organizational purposes.
9
 */
10

    
11
function ctools_context_menu(&$items) {
12
  $base = array(
13
    'access arguments' => array('access content'),
14
    'type' => MENU_CALLBACK,
15
    'file' => 'includes/context-admin.inc',
16
    'theme callback' => 'ajax_base_page_theme',
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
}