Ignore:
Timestamp:
Jul 24, 2012, 7:18:01 PM (12 years ago)
Author:
plg
Message:

Insert a new tab "Rotate" on the photo administration screen (requires Piwigo 2.4.2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rotateImage/main.inc.php

    r16973 r16981  
    6868  return $root_url;
    6969}
     70
     71add_event_handler('tabsheet_before_select','rotate_image_add_tab', 50, 2);
     72function rotate_image_add_tab($sheets, $id)
     73
     74  if ($id == 'photo')
     75  {
     76    $sheets['rotate'] = array(
     77      'caption' => l10n('Rotate'),
     78      'url' => get_root_url().'admin.php?page=plugin-rotateImage-'.$_GET['image_id'],
     79      );
     80  }
     81 
     82  return $sheets;
     83}
    7084?>
Note: See TracChangeset for help on using the changeset viewer.