New hook. See added comments if you care.
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 3 Jan 2007 10:08:00 +0000 (10:08 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 3 Jan 2007 10:08:00 +0000 (10:08 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12054 7612ce4b-ef26-0410-bec9-ea0150e637f0

class/template/Template.class.php

index 7b3fa0b..08c0cc6 100644 (file)
@@ -311,10 +311,15 @@ class Template
       * Allow template set to override plugin configuration by either
       * adding or removing plugins.
       *
       * Allow template set to override plugin configuration by either
       * adding or removing plugins.
       *
+      * NOTE: due to when this code executes, plugins activated here
+      *       do not have access to the config_override and loading_prefs 
+      *       hooks; instead, such plugins can use the 
+      *       "template_plugins_override_after" hook defined below.
+      *
       */
     function override_plugins() {
 
       */
     function override_plugins() {
 
-        global $disable_plugins, $plugins, $squirrelmail_plugin_hooks;
+        global $disable_plugins, $plugins, $squirrelmail_plugin_hooks, $null;
         if ($disable_plugins) return;
 
         $add_plugins = Template::get_template_config($this->template_set_id,
         if ($disable_plugins) return;
 
         $add_plugins = Template::get_template_config($this->template_set_id,
@@ -371,6 +376,8 @@ class Template
             }
         }
 
             }
         }
 
+        do_hook('template_plugins_override_after', $null);
+
     }
 
     /**
     }
 
     /**