Index:ad.module===================================================================--- ad.module	(revision 7936)+++ ad.module	(revision 8019)@@ -3,6 +3,7 @@  /* TODO Implement the hook_theme registry. Combine all theme registry entries    into one hook_theme function in each corresponding module file.+*/ function ad_theme() {   return array(     'ad_display' => array(@@ -57,7 +58,7 @@       ),     ),   );-}; */+};    /* TODO You may want to take advantage of new form-specific alter hooks.@@ -207,7 +208,6 @@  */ function theme_ad_display($group, $display, $method = 'javascript') {   static $id = 0;-   // The naming convention for the id attribute doesn't allow commas.   $group = preg_replace('/[,]/', '+', $group); @@ -1265,7 +1265,13 @@      'access arguments' => array('create advertisements'),     );   }-+  +  $items["ad/redirect/%/%"] = array(+      'access arguments' => array('show advertisements'),+      'type' => MENU_CALLBACK, +      'page callback' => 'ad_redirect',+      'page arguments' => array(2,3));//array($aid, $group, $hostid));+   // callbacks   if (arg(0) == 'ad' && arg(1) == 'redirect' && is_numeric(arg(2))) {     $aid = preg_replace('/[^0-9]/', '', arg(2));