Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Method to actually call the hooks
- */
- protected function _callHooks($hook,$arg) {
- $ret = array();
- $methods = $this->getHooks($hook);
- I2CE::raiseError("Calling for $hook:\n" . print_r($methods,true));
- foreach ($methods as $data) {
- $module=$this->getClass($data['module']);
- $method=$data['method'];
- if ($arg === null) {
- $ret[]=$module->{$method}();
- } else {
- $ret[]=$module->{$method}($arg);
- }
- }
- return $ret;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement