From b526cc8c0bea4033a1ffadd6706f073f9cb90eeb Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 22 Dec 2008 03:53:36 +0000 Subject: 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() { } --- core/libraries/Admin_View.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'core/libraries/Admin_View.php') diff --git a/core/libraries/Admin_View.php b/core/libraries/Admin_View.php index 5752d659..c172b76b 100644 --- a/core/libraries/Admin_View.php +++ b/core/libraries/Admin_View.php @@ -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"; -- cgit v1.2.3