Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Plugin Hooks for a PHP application
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: Plugin Hooks for a PHP application
Umm, I'm sure you know about scope?  Your array must be visible to both add hook and run hook functions.

Note that you need to add to the array, not assign to it.
As for running them, you can simply call them, ie:

PHP Code:
$f = 'myfunction';
$f();

// above is equivalent to
myfunction();


My Blog
02-15-2008 07:11 PM
Find all posts by this user

« Next Oldest | Next Newest »

Messages In This Thread
RE: Plugin Hooks for a PHP application - ZiNgA BuRgA - 02-15-2008 07:11 PM

 Standard Tools
Forum Jump: