diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-04-15 07:23:22 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-04-15 07:23:22 +0000 |
commit | a7f345476f80cde43589069825a256534de7745c (patch) | |
tree | d90dfe15263af64b9194e5dcef8810c40b75765e /modules/g2_import/helpers/g2_import_menu.php | |
parent | 8c1d1a9d0df5e1501d8beccbadeaf93c95313a62 (diff) |
Very early round of Gallery 2 import code. It can import users (with
the wrong password) and import groups, with a basic UI. Needs a ton
more work.
Diffstat (limited to 'modules/g2_import/helpers/g2_import_menu.php')
-rw-r--r-- | modules/g2_import/helpers/g2_import_menu.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/g2_import/helpers/g2_import_menu.php b/modules/g2_import/helpers/g2_import_menu.php new file mode 100644 index 00000000..3eff2714 --- /dev/null +++ b/modules/g2_import/helpers/g2_import_menu.php @@ -0,0 +1,29 @@ +<?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 g2_import_menu_Core { + static function admin($menu, $theme) { + $menu + ->get("content_menu") + ->append(Menu::factory("link") + ->id("g2_import") + ->label(t("Gallery 2 Import")) + ->url(url::site("admin/g2_import"))); + } +} |