source: extensions/photo_update/main.inc.php @ 16982

Last change on this file since 16982 was 16982, checked in by plg, 12 years ago

add tab "Update" on photo administration screen (requires Piwigo 2.4.2)

File size: 613 bytes
RevLine 
[11651]1<?php
2/*
3Plugin Name: Photo Update
4Version: auto
5Description: Update a photo with a new file
6Plugin URI: http://piwigo.org/ext/extension_view.php?eid=
7Author: plg
8Author URI: http://piwigo.wordpress.com
9*/
10
11if (!defined('PHPWG_ROOT_PATH'))
12{
13  die('Hacking attempt!');
14}
15
[16982]16add_event_handler('tabsheet_before_select','photo_update_add_tab', 50, 2);
17function photo_update_add_tab($sheets, $id)
18{ 
19  if ($id == 'photo')
[11651]20  {
[16982]21    $sheets['update'] = array(
22      'caption' => l10n('Update'),
23      'url' => get_root_url().'admin.php?page=plugin-photo_update-'.$_GET['image_id'],
24      );
[11651]25  }
[16982]26 
27  return $sheets;
[11651]28}
29?>
Note: See TracBrowser for help on using the repository browser.