Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.Whenever the adsense.module is enabled, all 404 errors will be handled as 403 (access denied).
Index: adsense.module
===================================================================
RCS file: /cvs/drupal/contributions/modules/adsense/adsense.module,v
retrieving revision 1.27
diff -u -r1.27 adsense.module
--- adsense.module 11 Dec 2005 05:18:35 -0000 1.27
+++ adsense.module 4 Jan 2006 08:28:03 -0000
@@ -156,7 +156,7 @@
return $output;
}
-
+/*
function adsense_menu($may_cache) {
$items = array();
@@ -171,7 +171,7 @@
}
return $items;
}
-
+*/
function adsense_perm() {
return array ('hide adsense');
}
Comments
Comment #1
markus_petrux commentedWow! I spent a couple of hours trying to search the reason for those 403 pages!
Worked for me, though I'm wondering if there would be side effects or it was just a mistake to use the hook_menu() for this module?
Thanks a lot! :-)
Comment #2
kbahey commentedThanks for the patch. Fixed in 4.6 and CVS.
Comment #3
(not verified) commented