From 3347178eee9c0d4b779a172af1139885db5655dc Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Thu, 9 Jul 2009 18:59:04 -0700 Subject: Created the dynamic albums module which provides a dynamic album containing either recent updates or most viewed images. --- modules/dynamic/helpers/dynamic_installer.php | 46 +++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 modules/dynamic/helpers/dynamic_installer.php (limited to 'modules/dynamic/helpers/dynamic_installer.php') diff --git a/modules/dynamic/helpers/dynamic_installer.php b/modules/dynamic/helpers/dynamic_installer.php new file mode 100644 index 00000000..8780864b --- /dev/null +++ b/modules/dynamic/helpers/dynamic_installer.php @@ -0,0 +1,46 @@ + false, + "limit" => null, + "description" => "", + "key_field" => "view_count", + "title" => t("Most Viewed")))); + module::set_var("dynamic", "updates", + serialize((object)array("enabled" => false, + "limit" => null, + "description" => "", + "key_field" => "created", + "title" => t("Recent Updates")))); + module::set_version("dynamic", 1); + } + } + + static function upgrade($version) { + } + + static function uninstall() { + /* @todo Put database table drops here */ + module::delete("dynamic"); + } +} -- cgit v1.2.3