Cheers,
m^e
| |
|
Welcome to AstaHost - Dear Guest | |
Posted 09 April 2009 - 03:42 PM
Posted 31 March 2009 - 10:58 PM
essentially what you have here is this.
function addAction($actionName, $functionName){
{
global $actions;
$actions[$actionName][] = $functionname;
return true;
}
function performActions($actionName){
global $actions;
foreach($actions[$actionName] as $function)
{
// perform $function
}
}
performActions would go where ever you want the hooks to happen. So if you want something to happen after submitting a form page, but before it goes to the database you would insert a call tot he 2nd function.
-reply by theNetimpPosted 27 March 2007 - 02:34 AM
Posted 27 March 2007 - 01:54 AM
Posted 27 March 2007 - 12:07 AM
Posted 26 March 2007 - 05:13 AM
Community Forum Software by IP.Board
Licensed to: Xisto Corporation

