source: extensions/menalto2piwigo/main.inc.php @ 28825

Last change on this file since 28825 was 28825, checked in by plg, 10 years ago

import data from Menalto Gallery

File size: 1.1 KB
Line 
1<?php
2/*
3Plugin Name: Menalto2Piwigo
4Version: auto
5Description: import data from a Menalto Gallery into Piwigo
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=
7Author: plg
8Author URI: http://le-gall.net/pierrick
9*/
10
11if (!defined('PHPWG_ROOT_PATH'))
12{
13  die('Hacking attempt!');
14}
15
16// +-----------------------------------------------------------------------+
17// | Define plugin constants                                               |
18// +-----------------------------------------------------------------------+
19
20defined('M2P_ID') or define('M2P_ID', basename(dirname(__FILE__)));
21define('M2P_PATH' ,   PHPWG_PLUGINS_PATH.M2P_ID . '/');
22
23// +-----------------------------------------------------------------------+
24// | Add event handlers                                                    |
25// +-----------------------------------------------------------------------+
26
27add_event_handler('get_admin_plugin_menu_links', 'm2p_admin_menu');
28function 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.