From 39a40e49a19f00baeeeefe375d67e915ccc7e09a Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 29 Sep 2009 14:35:15 -0700 Subject: Refactor sidebar_blocks into a separate function and then call block_manager::get_html(site.sidebar). Convert image_block to use block management instead of theme::sidebar_blocks --- .../image_block/helpers/image_block_installer.php | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 modules/image_block/helpers/image_block_installer.php (limited to 'modules/image_block/helpers/image_block_installer.php') diff --git a/modules/image_block/helpers/image_block_installer.php b/modules/image_block/helpers/image_block_installer.php new file mode 100644 index 00000000..06668dc2 --- /dev/null +++ b/modules/image_block/helpers/image_block_installer.php @@ -0,0 +1,32 @@ + Date: Mon, 9 Nov 2009 07:34:30 -0800 Subject: Since the activate_sidebar_blocks mentod is called from the module::install, we don't need to add the block in the image_block_installer::install method as well> Fixes ticket 874. --- modules/image_block/helpers/image_block_installer.php | 2 -- 1 file changed, 2 deletions(-) (limited to 'modules/image_block/helpers/image_block_installer.php') diff --git a/modules/image_block/helpers/image_block_installer.php b/modules/image_block/helpers/image_block_installer.php index 06668dc2..04a15619 100644 --- a/modules/image_block/helpers/image_block_installer.php +++ b/modules/image_block/helpers/image_block_installer.php @@ -19,13 +19,11 @@ */ class image_block_installer { static function install() { - block_manager::add("site.sidebar", "image_block", "random_image"); module::set_version("image_block", 2); } static function upgrade($version) { if ($version == 1) { - block_manager::add("site.sidebar", "image_block", "random_image"); module::set_version("image_block", 2); } } -- cgit v1.2.3