view hooks are now in $GLOBALS['SEEDDMS_HOOKS']['view']

This commit is contained in:
Uwe Steinmann 2013-07-21 11:52:58 +02:00
parent 317021a283
commit 25a6bf8f72

View File

@ -60,8 +60,8 @@ class SeedDMS_View_Common {
function callHook($hook) {
$tmp = explode('_', get_class($this));
if(isset($GLOBALS['SEEDDMS_HOOKS'][lcfirst($tmp[2])])) {
foreach($GLOBALS['SEEDDMS_HOOKS'][lcfirst($tmp[2])] as $hookObj) {
if(isset($GLOBALS['SEEDDMS_HOOKS']['view'][lcfirst($tmp[2])])) {
foreach($GLOBALS['SEEDDMS_HOOKS']['view'][lcfirst($tmp[2])] as $hookObj) {
if (method_exists($hookObj, $hook)) {
return $hookObj->$hook($this);
}