[horde] Creating a prefs_change replyto_addr hook

Michael M Slusarz slusarz at horde.org
Thu Apr 3 22:46:32 UTC 2014


Quoting Jarvis Bilkoh <jarvisbilkoh at gmail.com>:

> I want to make sure the user can't change the replyto_addr outside a domain
> list. I've tried creating a pref_change entry to make this happen.
> Unfortunately, it doesn't seem to call it.
>
> $_prefs['prefs_change']['hook'] = true;
>
>     public function prefs_change($pref)
>     {
>         switch ($pref) {
>         case 'replyto_addr':
>             Horde::log('This is where Reply-To is changed.', 'INFO');
>             break;
>         }
>     }

The 'replyto_addr' information is saved in the 'identities'  
preference, so that's the preference you need to check for.  (The  
'replyto_addr' entry in prefs.php exists only to provide  
locked/default information).

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the horde mailing list