diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-29 12:04:47 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-29 12:04:47 -0700 |
commit | d77045f60de98eaa6400deddd11690a1401044ea (patch) | |
tree | c1e2a106c321bf9431e1f65768e583410c6d1cbb /modules/gallery/controllers/admin_dashboard.php | |
parent | 39cd84d86c69090ccf861b9bd2b4758350a47de2 (diff) |
Extend block_manager to handle sidebar blocks. get_available has become get_available_admin_blocks, get_list becomes get_admin_list. Create new functions get_available_site_blocks which will look for gallery_block get_available_site_blocks
Diffstat (limited to 'modules/gallery/controllers/admin_dashboard.php')
-rw-r--r-- | modules/gallery/controllers/admin_dashboard.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/controllers/admin_dashboard.php b/modules/gallery/controllers/admin_dashboard.php index 3cb97b14..6bf3b966 100644 --- a/modules/gallery/controllers/admin_dashboard.php +++ b/modules/gallery/controllers/admin_dashboard.php @@ -34,7 +34,7 @@ class Admin_Dashboard_Controller extends Admin_Controller { $form = gallery_block::get_add_block_form(); if ($form->validate()) { list ($module_name, $id) = explode(":", $form->add_block->id->value); - $available = block_manager::get_available(); + $available = block_manager::get_available_admin_blocks(); if ($form->add_block->center->value) { block_manager::add("dashboard_center", $module_name, $id); @@ -66,7 +66,7 @@ class Admin_Dashboard_Controller extends Admin_Controller { } if (!empty($deleted)) { - $available = block_manager::get_available(); + $available = block_manager::get_available_admin_blocks(); $title = $available[join(":", $deleted)]; message::success(t("Removed <b>%title</b> block", array("title" => $title))); } |