Hey Eric,
May I get a bit more information on which text field you are trying to modify? Also, by clicking the list of extension hooks you may access a page with information regarding the hook.
Justin:
I am looking to modify the contents of any text field on the page.
Thanks for the link. I was familiar with that resource. I think what I will have to do is week through the code and learn where the best hook would be. I tried some of the hooks and things happened at times that I was not expecting.
I’m not sure, it might. But consider the following:
Customizing certain settings is an official use of path.php. For example, setting custom variables. See Path.php Global Variables
There are a lot of situations that the extension hooks don’t cover. path.php allows you to exert a lot of control that EE normally would deprive you of.
If you’re worried about it, put your custom code in it’s own file and just include() it in path.php – then you’ll only have one or two lines to maintain in path.php. It’s a small price to pay for the control it gives you.
An alternative that might work for your purposes is to use the ‘sessions_start’ hook, which is called pretty early in the EE request process.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.