source: extensions/export_data/main.inc.php @ 27092

Revision 27092, 1.3 KB checked in by plg, 6 years ago (diff)

new plugin to export data from database in spreadsheet

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