diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-28 22:06:26 +0000 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2008-11-28 22:06:26 +0000 |
commit | a73aade7130ba22ffb434b0f32c6421a7324b237 (patch) | |
tree | ab830995784c21a2112625f472cc7e4f2a316931 /modules/rearrange/helpers | |
parent | bb8fa3c4171d18c0ebe85920aefab09cc6e7f474 (diff) |
The start of a rearrange module
Diffstat (limited to 'modules/rearrange/helpers')
-rw-r--r-- | modules/rearrange/helpers/rearrange_installer.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/rearrange/helpers/rearrange_installer.php b/modules/rearrange/helpers/rearrange_installer.php new file mode 100644 index 00000000..e2a82160 --- /dev/null +++ b/modules/rearrange/helpers/rearrange_installer.php @@ -0,0 +1,31 @@ +<?php defined("SYSPATH") or die("No direct script access."); +/** + * Gallery - a web based photo album viewer and editor + * Copyright (C) 2000-2008 Bharat Mediratta + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or (at + * your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. + */ +class rearrange_installer { + public static function install() { + $version = module::get_version("rearrange"); + if ($version == 0) { + module::set_version("rearrange", 1); + } + } + + public static function uninstall() { + module::delete("rearrange"); + } +} |