aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/picture_modify.php2
-rw-r--r--tools/triggers_list.php9
2 files changed, 10 insertions, 1 deletions
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 dfbbfd36a..a61ece639 100644
--- a/tools/triggers_list.php
+++ b/tools/triggers_list.php
@@ -830,6 +830,13 @@ array(
'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>
@@ -1006,4 +1013,4 @@ $("tfoot select").change(function () {
</script>
</body>
-</html> \ No newline at end of file
+</html>