Add Theme::module() and module::get()

This commit is contained in:
Bharat Mediratta
2008-11-15 09:08:18 +00:00
parent c152e5db5a
commit e901d613bf
2 changed files with 9 additions and 0 deletions
+5
View File
@@ -48,6 +48,11 @@ class Theme_Core {
return $this->pagination->render();
}
public function module($module_name) {
$module = module::get($module_name);
return $module->loaded ? $module : null;
}
public function in_place_edit() {
return new View("in_place_edit.html");
}