Line | |
---|
1 | <?php |
---|
2 | /* |
---|
3 | Plugin Name: Virtualize |
---|
4 | Version: auto |
---|
5 | Description: Make categories virtual and move photos from "galleries" to "upload" |
---|
6 | Plugin URI: http://piwigo.org/ext/extension_view.php?eid= |
---|
7 | Author: plg |
---|
8 | Author URI: http://piwigo.wordpress.com |
---|
9 | */ |
---|
10 | |
---|
11 | if (!defined('PHPWG_ROOT_PATH')) |
---|
12 | { |
---|
13 | die('Hacking attempt!'); |
---|
14 | } |
---|
15 | |
---|
16 | // define('COMMUNITY_PATH' , PHPWG_PLUGINS_PATH.basename(dirname(__FILE__)).'/'); |
---|
17 | |
---|
18 | /* Plugin admin */ |
---|
19 | add_event_handler('get_admin_plugin_menu_links', 'virtualize_admin_menu'); |
---|
20 | function virtualize_admin_menu($menu) |
---|
21 | { |
---|
22 | array_push( |
---|
23 | $menu, |
---|
24 | array( |
---|
25 | 'NAME' => 'Virtualize', |
---|
26 | 'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin.php') |
---|
27 | ) |
---|
28 | ); |
---|
29 | |
---|
30 | return $menu; |
---|
31 | } |
---|
32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.