From 9cc4ce45d8dd3c7aaeb33a5f44c2288e8ad65805 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 12 Mar 2014 13:33:50 +0000 Subject: feature 3014: new trigger picture_modify_before_update git-svn-id: http://piwigo.org/svn/branches/2.6@27713 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/picture_modify.php | 2 ++ tools/triggers_list.php | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/admin/picture_modify.php b/admin/picture_modify.php index 25c74a8c1..23b28b78f 100644 --- a/admin/picture_modify.php +++ b/admin/picture_modify.php @@ -154,6 +154,8 @@ if (isset($_POST['submit']) and count($page['errors']) == 0) $data{'date_creation'} = null; } + $data = trigger_change('picture_modify_before_update', $data); + single_update( IMAGES_TABLE, $data, diff --git a/tools/triggers_list.php b/tools/triggers_list.php index d327da72d..a18dda4c0 100644 --- a/tools/triggers_list.php +++ b/tools/triggers_list.php @@ -823,6 +823,13 @@ array( 'files' => array('admin\user_list_backend.php'), 'infos' => 'New in 2.6.', ), +array( + 'name' => 'picture_modify_before_update', + 'type' => 'trigger_event', + 'vars' => array('array', 'data'), + 'files' => array('admin\picture_modify.php'), + 'infos' => 'New in 2.6.2.', +), ); ?> -- cgit v1.2.3