From 77fd1f51a3c5f5a52f72ef8a299fe368228e2285 Mon Sep 17 00:00:00 2001 From: vdigital Date: Fri, 23 May 2008 21:05:41 +0000 Subject: git-svn-id: http://piwigo.org/svn/trunk@2357 68402e56-0260-453c-a942-63ccdbb3a9ee --- BSF/plugins/add_index/main.admin.inc.php | 93 ++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 BSF/plugins/add_index/main.admin.inc.php (limited to 'BSF/plugins/add_index/main.admin.inc.php') diff --git a/BSF/plugins/add_index/main.admin.inc.php b/BSF/plugins/add_index/main.admin.inc.php new file mode 100644 index 000000000..f293d30e0 --- /dev/null +++ b/BSF/plugins/add_index/main.admin.inc.php @@ -0,0 +1,93 @@ +path); + } + + function get_admin_advanced_features_links($advanced_features) + { + array_push($advanced_features, + array + ( + 'CAPTION' => l10n('Advanced_Add_Index'), + 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/main_page.php').'&overwrite' + )); + + return $advanced_features; + } + + function get_admins_site_links($site_manager_plugin_links, $site_id, $is_remote) + { + if (!$is_remote) + { + array_push($site_manager_plugin_links, + array + ( + 'U_HREF' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/main_page.php').'&site_id='.$site_id, + 'U_CAPTION' => l10n('Manager_Add_Index'), + 'U_HINT' => l10n('Add_Index') + )); + } + + return $site_manager_plugin_links; + } +} + +// Create object +$add_index = new AdminAddIndex(); + +// Load Add Index parameters +$add_index->load_params(); + +// Add events +add_event_handler('loading_lang', array(&$add_index, 'loading_lang')); +add_event_handler('get_admin_advanced_features_links', array(&$add_index, 'get_admin_advanced_features_links')); +add_event_handler('get_admins_site_links', array(&$add_index, 'get_admins_site_links'), EVENT_HANDLER_PRIORITY_NEUTRAL, 3); + +?> \ No newline at end of file -- cgit v1.2.3