Add some admin theme callbacks and make them explicitly admin_xxx for consistency

with the callbacks in the xxx_block helpers.  So in the theme we have:

admin.html.php:
  $theme->admin_page_bottom()

then in the helpers:

core_block.php:
  function admin_page_bottom() { }
This commit is contained in:
Bharat Mediratta
2008-12-22 03:53:36 +00:00
parent fe27bd1eb3
commit b526cc8c0b
5 changed files with 18 additions and 5 deletions

View File

@@ -65,9 +65,11 @@ class Admin_View_Core extends View {
*/
public function __call($function, $args) {
switch ($function) {
case "dashboard_blocks":
case "sidebar_blocks":
$function = "admin_$function";
case "admin_dashboard_blocks":
case "admin_footer":
case "admin_page_bottom":
case "admin_page_top":
case "admin_sidebar_blocks":
$blocks = array();
foreach (module::installed() as $module) {
$helper_class = "{$module->name}_block";