function js_callback_examples_menu in JS Callback Handler 7.2
Implements hook_menu().
File
- js_callback_examples/
js_callback_examples.module, line 11 - Provides examples on how to use the JS module API.
Code
function js_callback_examples_menu() {
$items['js-callback-examples'] = array(
'title' => 'JS Callback Examples',
'description' => 'Provides examples on how to use the JS module API.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'js_callback_examples_form',
),
'access callback' => TRUE,
'type' => MENU_NORMAL_ITEM,
);
$items['js-callback-access-denied'] = array(
'title' => 'JS Callback Examples (access denied)',
'access callback' => FALSE,
'type' => MENU_CALLBACK,
);
$items['js-callback-redirect'] = array(
'title' => 'JS Callback Examples (redirect)',
'page callback' => 'drupal_goto',
'page arguments' => array(
'js-callback-redirect-result',
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
$items['js-callback-redirect-result'] = array(
'title' => 'JS Callback Examples (redirect result)',
'description' => 'Provides examples on how to use the JS module API.',
'page callback' => 'js_callback_examples_redirect_result',
'page arguments' => array(),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
return $items;
}