Skip to content

Commit e82e500

Browse files
committed
Added onAfterInsert and onAfterUpdate Events in tform actions
1 parent 0bd681d commit e82e500

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

interface/lib/classes/tform_actions.inc.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ function onUpdate() {
113113
foreach($this->plugins as $plugin) {
114114
$plugin->onInsert();
115115
}
116+
117+
$this->onAfterUpdate();
116118

117119
if($_REQUEST["next_tab"] == '') {
118120
$list_name = $_SESSION["s"]["form"]["return_to"];
@@ -151,6 +153,8 @@ function onInsert() {
151153
foreach($this->plugins as $plugin) {
152154
$plugin->onInsert();
153155
}
156+
157+
$this->onAfterInsert();
154158

155159
if($_REQUEST["next_tab"] == '') {
156160
$list_name = $_SESSION["s"]["form"]["return_to"];
@@ -170,6 +174,15 @@ function onInsert() {
170174
$this->onError();
171175
}
172176
}
177+
178+
function onAfterUpdate() {
179+
global $app, $conf;
180+
}
181+
182+
function onAfterInsert() {
183+
global $app, $conf;
184+
}
185+
173186

174187
/**
175188
* Function called on data insert or update error

0 commit comments

Comments
 (0)