From e901d613bf192f1a01a31bac2aac2d4074fddf45 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 15 Nov 2008 09:08:18 +0000 Subject: Add Theme::module() and module::get() --- core/helpers/module.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/helpers/module.php') 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(); } -- cgit v1.2.3