Fix hook name clash: new smtp_auth hook added recently (a few months ago) has been...
[squirrelmail.git] / functions / auth.php
index 732dbeb7c4256cab7f124bd1c157cb3af0a039f9..befbf03f06b978b8d6671c8b44028d96cef0db32 100644 (file)
@@ -363,6 +363,12 @@ function get_smtp_user(&$user, &$pass) {
     // directly changing the arguments array contents 
     // in your plugin e.g., $args[0] = 'new_username';
     //
+    // NOTE: there is another hook in class/deliver/Deliver_SMTP.class.php
+    // called "smtp_authenticate" that allows a plugin to run its own
+    // custom authentication routine - this hook here is thus slightly
+    // mis-named but is too old to change.  Be careful that you do not
+    // confuse your hook names.
+    //
     $temp = array(&$user, &$pass);
     do_hook('smtp_auth', $temp);
 }