1
0

Merge branch 'master' of git@github.com:gallery/gallery3-contrib

This commit is contained in:
Bharat Mediratta 2009-07-29 17:47:58 -07:00
commit 2e8461c86d
3 changed files with 16 additions and 18 deletions

View File

@ -1,3 +1,3 @@
name = Developer name = Developer
description = Tools to assist module and theme developers description = "Tools to assist module and theme developers"
version = 1 version = 1

View File

@ -1,6 +1,6 @@
<?php defined("SYSPATH") or die("No direct script access.") ?> <?php defined("SYSPATH") or die("No direct script access.") ?>
name = <?= $module_name ?> name = <?= $module_name ?>
description = <?= $module_description ?> description = "<?= $module_description ?>"
version = 1 version = 1

View File

@ -20,13 +20,15 @@ class dynamic_installer {
static function install() { static function install() {
$version = module::get_version("dynamic"); $version = module::get_version("dynamic");
if ($version == 0) { if ($version == 0) {
module::set_var("dynamic", "popular", module::set_var(
"dynamic", "popular",
serialize((object)array("enabled" => false, serialize((object)array("enabled" => false,
"limit" => null, "limit" => null,
"description" => "", "description" => "",
"key_field" => "view_count", "key_field" => "view_count",
"title" => t("Most Viewed")))); "title" => t("Most Viewed"))));
module::set_var("dynamic", "updates", module::set_var(
"dynamic", "updates",
serialize((object)array("enabled" => false, serialize((object)array("enabled" => false,
"limit" => null, "limit" => null,
"description" => "", "description" => "",
@ -36,11 +38,7 @@ class dynamic_installer {
} }
} }
static function upgrade($version) {
}
static function uninstall() { static function uninstall() {
/* @todo Put database table drops here */
module::delete("dynamic"); module::delete("dynamic");
} }
} }