source: extensions/Photo_add_by/main.inc.php @ 22158

Last change on this file since 22158 was 21222, checked in by ddtddt, 12 years ago

[extensions] - Photo_add_by - new feature choise where add 'photo add by

File size: 772 bytes
Line 
1<?php
2/*
3Plugin Name: Photo added by
4Version: auto
5Description: Add who added photo on photo page
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=621
7Author: ddtddt
8Author URI:
9*/
10
11if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
12
13global $prefixeTable;
14
15define('PAB_DIR' , basename(dirname(__FILE__)));
16define('PAB_PATH' , PHPWG_PLUGINS_PATH . PAB_DIR . '/');
17
18 // Plugin on picture page
19if (script_basename() == 'picture') 
20{ 
21  include_once(dirname(__FILE__).'/initpicture.php');
22}
23
24// menu admin
25add_event_handler('get_admin_plugin_menu_links', 'PAB_admin_menu');
26function PAB_admin_menu($menu)
27{
28  array_push($menu, array(
29        'NAME' => 'Photo added by',
30    'URL' => get_admin_plugin_menu_link(PAB_PATH . 'admin/admin.php')));
31  return $menu;
32}
33
34
35?>
Note: See TracBrowser for help on using the repository browser.