summaryrefslogtreecommitdiff
path: root/core/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-15 09:08:18 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-15 09:08:18 +0000
commite901d613bf192f1a01a31bac2aac2d4074fddf45 (patch)
treecde0bfcfd2e396645b1af2169efa499728809bca /core/helpers
parentc152e5db5add87a572bf78fe3d64c8562bf7e790 (diff)
Add Theme::module() and module::get()
Diffstat (limited to 'core/helpers')
-rw-r--r--core/helpers/module.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/helpers/module.php b/core/helpers/module.php
index 92077f72..dbb2e989 100644
--- a/core/helpers/module.php
+++ b/core/helpers/module.php
@@ -37,6 +37,10 @@ class Module_Core {
$module->save();
}
+ public static function get($module_name) {
+ return ORM::factory("module")->where("name", $module_name)->find();
+ }
+
public static function delete ($module_name) {
ORM::factory("module")->where("name", $module_name)->find()->delete();
}