Welcome Guest, Not a member yet? Register   Sign In
Modifying the $hooks array
#1

[eluser]simshaun[/eluser]
Is there any way that you can modify the $hooks arrray (config/hooks.php) from within a library?

I ask because I plan on adding custom hooks to the $hooks array, but must do so from within a library.

At the moment I'm adding $config['myhooks'] = array() in config/config.php and my library makes use of config->set_item('item_name', 'item_value') to add to the myhooks array.
#2

[eluser]simshaun[/eluser]
Bump. I'd still like to know if this is possible.

If at all possible, I'd like to do this without overloading the core.




Theme © iAndrew 2016 - Forum software by © MyBB