--- V:\public_html\drupal515\sites\all\modules\uc_protx_vsp_direct\uc_protx_vsp_direct.module
+++ V:\public_html\drupal515\sites\all\modules\uc_protx_vsp_direct\uc_protx_vsp_direct_cachemenu.module
@@ -31,33 +31,34 @@
function uc_protx_vsp_direct_menu($may_cache) {
$items = array();
- if (!$may_cache) {
+ if ($may_cache) {
+ $items[] = array(
+ 'path' => 'uc_protx_vsp_direct/3DSecure',
+ 'callback' => 'uc_protx_vsp_direct_3DSecure',
+ 'access' => TRUE,
+ 'type' => MENU_CALLBACK,
+ );
+ $items[] = array(
+ 'path' => 'uc_protx_vsp_direct/3DSecure_callback',
+ 'callback' => 'uc_protx_vsp_direct_3DSecure_callback',
+ 'access' => TRUE,
+ 'type' => MENU_CALLBACK,
+ );
+ $items[] = array(
+ 'path' => 'uc_protx_vsp_direct/3DSecure_waitingPage',
+ 'callback' => 'uc_protx_vsp_direct_3DSecure_waitingPage',
+ 'access' => TRUE,
+ 'type' => MENU_CALLBACK,
+ );
+ $items[] = array(
+ 'path' => 'uc_protx_vsp_direct/3DSecure_complete',
+ 'callback' => 'uc_protx_vsp_direct_3DSecure_complete',
+ 'access' => TRUE,
+ 'type' => MENU_CALLBACK,
+ );
+ }
+ else {
drupal_add_css(drupal_get_path('module', 'uc_protx_vsp_direct') .'/uc_protx_vsp_direct.css', 'module', 'all', false);
-
- $items[] = array(
- 'path' => 'uc_protx_vsp_direct/3DSecure',
- 'callback' => 'uc_protx_vsp_direct_3DSecure',
- 'access' => TRUE,
- 'type' => MENU_CALLBACK,
- );
- $items[] = array(
- 'path' => 'uc_protx_vsp_direct/3DSecure_callback',
- 'callback' => 'uc_protx_vsp_direct_3DSecure_callback',
- 'access' => TRUE,
- 'type' => MENU_CALLBACK,
- );
- $items[] = array(
- 'path' => 'uc_protx_vsp_direct/3DSecure_waitingPage',
- 'callback' => 'uc_protx_vsp_direct_3DSecure_waitingPage',
- 'access' => TRUE,
- 'type' => MENU_CALLBACK,
- );
- $items[] = array(
- 'path' => 'uc_protx_vsp_direct/3DSecure_complete',
- 'callback' => 'uc_protx_vsp_direct_3DSecure_complete',
- 'access' => TRUE,
- 'type' => MENU_CALLBACK,
- );
}
return $items;
}