function npop_menu in Node pop-up 7
Implements hook_menu().
File
- ./
npop.module, line 23 - Create popup nodes with ajax and Drupal core functionality.
Code
function npop_menu() {
$items['ajax/npop/node/%node/load/%'] = array(
'title' => 'Get node',
'page callback' => 'npop_ajax_load_node',
'page arguments' => array(
3,
5,
),
'delivery callback' => 'ajax_deliver',
'access arguments' => array(
'access content',
),
);
$items['ajax/npop/close'] = array(
'title' => 'Close',
'page callback' => 'npop_ajax_close_npop',
'delivery callback' => 'ajax_deliver',
'access arguments' => array(
'access content',
),
);
// Settings pages.
$items['admin/config/content/npop'] = array(
'title' => 'Node popup settings',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'npop_admin_settings_form',
),
'access arguments' => array(
'administer npop',
),
'file' => 'npop.admin.inc',
);
return $items;
}