Moved after_navbar hook into a egw_framework method

This commit is contained in:
Ralf Becker 2010-06-07 17:31:43 +00:00
parent 30d45d9b37
commit 6ecb981cb5
2 changed files with 15 additions and 4 deletions

View File

@ -950,6 +950,20 @@ abstract class egw_framework
self::$top_menu_extra[$id] = $entry; self::$top_menu_extra[$id] = $entry;
} }
/**
* Call and return content of 'after_navbar' hook
*
* @return string
*/
protected function _get_after_navbar()
{
ob_start();
$GLOBALS['egw']->hooks->process('after_navbar',null,true);
$content = ob_get_contents();
ob_end_clean();
return $content;
}
} }
/** /**

View File

@ -258,10 +258,7 @@ class idots_framework extends egw_framework
} }
// hook after navbar // hook after navbar
ob_start(); $content .= $this->_get_after_navbar();
$GLOBALS['egw']->hooks->process('after_navbar',null,true);
$content .= ob_get_contents();
ob_end_clean();
return $content; return $content;
} }