X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_plugin.inc;h=953f18ddaab3023caf0e722c82c3ce6e4a25aa6e;hb=bc81ccefd133ead30e4d43c2be5896df4fb89486;hp=928d751c4adf8cd8b9f07c62c161c42e3e753ccb;hpb=89d5b00ebf8dc679c97094d2bfb39fd7ac66225a;p=gosa.git diff --git a/include/class_plugin.inc b/include/class_plugin.inc index 928d751c4..953f18dda 100644 --- a/include/class_plugin.inc +++ b/include/class_plugin.inc @@ -405,10 +405,7 @@ class plugin } /* Find hooks entries for this class */ - $command= $this->config->search(get_class($this), "CHECK",array('menu')); - if ($command == "" && isset($this->config->data['TABS'])){ - $command= $this->config->search(get_class($this), "CHECK",array('tabs')); - } + $command= $this->config->search(get_class($this), "CHECK", array('menu', 'tabs')); if ($command != ""){ @@ -569,10 +566,7 @@ class plugin function postcreate($add_attrs= array()) { /* Find postcreate entries for this class */ - $command= $this->config->search(get_class($this), "POSTCREATE",array('menu')); - if ($command == "" && isset($this->config->data['TABS'])){ - $command= $this->config->search(get_class($this), "POSTCREATE",array('tabs')); - } + $command= $this->config->search(get_class($this), "POSTCREATE",array('menu', 'tabs')); if ($command != ""){ @@ -604,10 +598,7 @@ class plugin function postmodify($add_attrs= array()) { /* Find postcreate entries for this class */ - $command= $this->config->search(get_class($this), "POSTMODIFY",array('menu')); - if ($command == "" && isset($this->config->data['TABS'])){ - $command= $this->config->search(get_class($this), "POSTMODIFY",array('tabs')); - } + $command= $this->config->search(get_class($this), "POSTMODIFY",array('menu','tabs')); if ($command != ""){ @@ -639,11 +630,7 @@ class plugin function postremove($add_attrs= array()) { /* Find postremove entries for this class */ - $command= $this->config->search(get_class($this), "POSTREMOVE",array('menu')); - if ($command == "" && isset($this->config->data['TABS'])){ - $command= $this->config->search(get_class($this), "POSTREMOVE",array('tabs')); - } - + $command= $this->config->search(get_class($this), "POSTREMOVE",array('menu','tabs')); if ($command != ""){ /* Additional attributes */