Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Menalto2Piwigo |
---|
4 | Version: auto |
---|
5 | Description: import data from a Menalto Gallery into Piwigo |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid= |
---|
7 | Author: plg |
---|
8 | Author URI: http://le-gall.net/pierrick |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) |
---|
12 | { |
---|
13 | die('Hacking attempt!'); |
---|
14 | } |
---|
15 | |
---|
16 | // +-----------------------------------------------------------------------+ |
---|
17 | // | Define plugin constants | |
---|
18 | // +-----------------------------------------------------------------------+ |
---|
19 | |
---|
20 | defined('M2P_ID') or define('M2P_ID', basename(dirname(__FILE__))); |
---|
21 | define('M2P_PATH' , PHPWG_PLUGINS_PATH.M2P_ID . '/'); |
---|
22 | |
---|
23 | // +-----------------------------------------------------------------------+ |
---|
24 | // | Add event handlers | |
---|
25 | // +-----------------------------------------------------------------------+ |
---|
26 | |
---|
27 | add_event_handler('get_admin_plugin_menu_links', 'm2p_admin_menu'); |
---|
28 | function m2p_admin_menu($menu) |
---|
29 | { |
---|
30 | array_push( |
---|
31 | $menu, |
---|
32 | array( |
---|
33 | 'NAME' => 'Menalto2Piwigo', |
---|
34 | 'URL' => get_root_url().'admin.php?page=plugin-'.M2P_ID, |
---|
35 | ) |
---|
36 | ); |
---|
37 | |
---|
38 | return $menu; |
---|
39 | } |
---|
40 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.