[cvs] [Wiki] changed: CustomizingPreferences

Jan Schneider jan at horde.org
Thu Feb 24 01:04:13 PST 2005


jan  Thu, 24 Feb 2005 01:04:13 -0800

Modified page: http://wiki.horde.org/display.php?page=CustomizingPreferences
New Revision:  1.4

@@ -14,14 +14,15 @@
 
 -----
 
 +++ hooks.php
+
 I have created some hooks for capturing the users Identity and Email address to automatically set their Default identity the 
 first time that they log in. These hooks assume LDAP backend and should be instructive for someone wanting to create their
 own custom hooks...this wasn't easy to figure out.
 
 The first modification I did to hooks.php was to add the following (don't forget to add the
-'hook' => 'true', to $prefs('from_addr')'
+{{'hook' => 'true'}} to {{$prefs['from_addr']}}).
 
 <code type="php">
 if (!function_exists('_prefs_hook_from_addr')) {
 
@@ -61,10 +62,12 @@
          return $emailname;
      }
 }
 </code>
+
 The second modification I did to hooks.php was to add the following (don't forget to add the
-'hook' => 'true', to $prefs('fullname')'
+{{'hook' => 'true'}} to {{$prefs['fullname']}}).
+
 <code type="php">
 if (!function_exists('_prefs_hook_fullname')) {
 
    function _prefs_hook_fullname($user = null)
@@ -103,10 +106,13 @@
         return $name;
    }
 }
 </code>
+
 CW
+
 ----
+
 add your customizations here...
 
 -----
 


More information about the cvs mailing list