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
description = Tools to assist module and theme developers
description = "Tools to assist module and theme developers"
version = 1

View File

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

View File

@ -20,27 +20,25 @@ class dynamic_installer {
static function install() {
$version = module::get_version("dynamic");
if ($version == 0) {
module::set_var("dynamic", "popular",
serialize((object)array("enabled" => 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 Changes"))));
module::set_var(
"dynamic", "popular",
serialize((object)array("enabled" => 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 Changes"))));
module::set_version("dynamic", 1);
}
}
static function upgrade($version) {
}
static function uninstall() {
/* @todo Put database table drops here */
module::delete("dynamic");
}
}