Index: spam.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/spam/spam.module,v
retrieving revision 1.51.4.1.2.41.2.30.2.17
diff -u -r1.51.4.1.2.41.2.30.2.17 spam.module
--- spam.module	31 Aug 2009 21:09:29 -0000	1.51.4.1.2.41.2.30.2.17
+++ spam.module	3 Jan 2010 05:22:30 -0000
@@ -25,8 +25,6 @@
 define('SPAM_VERBOSE', 3);
 define('SPAM_DEBUG', 5);
 
-spam_init_api();
-
 /**
  * API call for scanning content for spam.  If spam is found, the appropriate
  * action will be taken.
@@ -948,19 +946,14 @@
  * modules/ subdirectory.  For example, we define the spam api hooks for the
  * node module in modules/spam_node.inc.
  */
-function spam_init_api() {
-  static $initialized = FALSE;
-
-  if (!$initialized) {
-    // We only need to module_load_include('initialized = TRUE', 'spam', '');
-    $path = drupal_get_path('module', 'spam') .'/modules';
-    // These files must be names spam_*.inc, such as spam_node.inc.
-    $files = drupal_system_listing('spam_.*\.inc$', $path, 'name', 0);
-    foreach ($files as $file) {
-      $module = substr_replace($file->name, '', 0, 5);
-      if (module_exists($module)) {
-        require_once './' . $file->filename;
-      }
+function spam_init() {
+  $path = drupal_get_path('module', 'spam') .'/modules';
+  // These files must be names spam_*.inc, such as spam_node.inc.
+  $files = drupal_system_listing('spam_.*\.inc$', $path, 'name', 0);
+  foreach ($files as $file) {
+    $module = substr_replace($file->name, '', 0, 5);
+    if (module_exists($module)) {
+      require_once './' . $file->filename;
     }
   }
 }
