summaryrefslogtreecommitdiff
path: root/core/libraries
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2008-11-21 07:06:11 +0000
committerTim Almdal <tnalmdal@shaw.ca>2008-11-21 07:06:11 +0000
commit992cf22c795100a4f42c17c38cf1aaa2029af279 (patch)
treeb599693080c029b26d77e1ea7b92cd9be9e62987 /core/libraries
parente60ddd0bd8e3337cf569eb66d36f2bd1021e948e (diff)
Revert module block approach
Diffstat (limited to 'core/libraries')
-rw-r--r--core/libraries/Theme.php17
1 files changed, 0 insertions, 17 deletions
diff --git a/core/libraries/Theme.php b/core/libraries/Theme.php
index 642bfb87..4bd8237a 100644
--- a/core/libraries/Theme.php
+++ b/core/libraries/Theme.php
@@ -57,23 +57,7 @@ class Theme_Core {
return new View("in_place_edit.html");
}
- public function block($type, $module=null) {
- $block = ORM::factory("block")
- ->where("type", $type);
- if (isset($module)) {
- $block->where("module", $module);
- }
- $result = $block->find_all();
- $blocks = "";
- foreach ($result as $block) {
- $blocks .= call_user_func($block->method, $this);
- }
-
- return $blocks;
- }
-
public function blocks() {
- // @todo make type mandatory, its only optional while i try this out for slideshow
/** @todo: make this data driven */
$blocks = array(
'carousel' => carousel::block($this),
@@ -81,7 +65,6 @@ class Theme_Core {
'info' => info::block($this),
'gmaps' => gmaps::block($this),
);
- kohana::Log("debug", print_r($blocks, true));
return $blocks;
}
}