-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathajax_node.module
41 lines (37 loc) · 982 Bytes
/
ajax_node.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
* @file
* AJAX Examples module file with basic examples.
*/
/**
* @defgroup ajax_example Example: AJAX
* @ingroup examples
* @{
* These examples show basic AJAX concepts.
*
* General documentation is available at
* @link ajax AJAX Framework documentation @endlink and at the
* @link http://drupal.org/node/752056 AJAX Forms handbook page @endlink.
*
* The several examples here demonstrate basic AJAX usage.
*/
/**
* Implements hook_menu().
*
* Sets up calls to drupal_get_form() for all our example cases.
*
* @see menu_example.module for more details on hook_menu().
*/
function ajax_node_menu() {
$items = array();
$items['ajax_node_callback'] = array(
'title' => 'whatever',
'page callback' => 'ajax_node_response',
'access callback' => 'user_access',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK,
'file' => 'ajax_node.inc',
'weight' => 0,
);
return $items;
}