index 63b8850dc4ee11585353cc0a1af37f55c0a66e01..edfd3d7d5be09a72320c841fa09f905965c67c4c 100644 (file)
function action_hook($add_attrs= array())
{
/* Find postcreate entries for this class */
- $command= search_config($this->config->data['MENU'], get_class($this), "ACTION_HOOK");
- if ($command == "" && isset($this->config->data['TABS'])){
- $command= search_config($this->config->data['TABS'], get_class($this), "ACTION_HOOK");
- }
-
+ $command= $this->config->search(get_class($this), "ACTION_HOOK",array('menu','tabs'));
if ($command != ""){
/* Walk through attribute list */