Skip to content

Commit

Permalink
merge r27713 from branch 2.6 to trunk
Browse files Browse the repository at this point in the history
feature 3014: new trigger picture_modify_before_update



git-svn-id: http://piwigo.org/svn/trunk@27714 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Mar 12, 2014
1 parent 5b0a3e2 commit fadbc98
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions admin/picture_modify.php
Expand Up @@ -154,6 +154,8 @@
$data{'date_creation'} = null;
}

$data = trigger_change('picture_modify_before_update', $data);

single_update(
IMAGES_TABLE,
$data,
Expand Down
9 changes: 8 additions & 1 deletion tools/triggers_list.php
Expand Up @@ -830,6 +830,13 @@
'files' => array('include\functions_rate.inc.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.',
),
);
?>
<!DOCTYPE html>
Expand Down Expand Up @@ -1006,4 +1013,4 @@
</script>

</body>
</html>
</html>

0 comments on commit fadbc98

Please sign in to comment.