function uc_termsofservice_menu in Ubercart Terms of Service 7
Same name and namespace in other branches
- 6 uc_termsofservice.module \uc_termsofservice_menu()
Implements hook_menu().
File
- ./
uc_termsofservice.module, line 15 - Ubercart Terms of Service.
Code
function uc_termsofservice_menu() {
$items = array();
$items['uc_termsofservice/node/autocomplete'] = array(
'title' => 'Autocomplete of nodes',
'page callback' => 'uc_termsofservice_node_autocomplete',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
// modalframe callback items
if (module_exists('modalframe')) {
$items['uc_termsofservice/show/%node'] = array(
'title' => 'Show Terms of Service',
'title callback' => 'uc_termsofservice_title_callback',
'title arguments' => array(
2,
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'uc_termsofservice_general_form',
),
'access callback' => TRUE,
'type' => MENU_CALLBACK,
);
}
return $items;
}