Merge branch 'master' of git@github.com:gallery/gallery3-contrib
This commit is contained in:
commit
2e8461c86d
@ -1,3 +1,3 @@
|
||||
name = Developer
|
||||
description = Tools to assist module and theme developers
|
||||
description = "Tools to assist module and theme developers"
|
||||
version = 1
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php defined("SYSPATH") or die("No direct script access.") ?>
|
||||
name = <?= $module_name ?>
|
||||
|
||||
description = <?= $module_description ?>
|
||||
description = "<?= $module_description ?>"
|
||||
|
||||
version = 1
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user