tbrehm
2005-12-06 e82e500714da62f2060ea2061c6e48ccd8027383
Added onAfterInsert and onAfterUpdate Events in tform actions
1 files modified
13 ■■■■■ changed files
interface/lib/classes/tform_actions.inc.php 13 ●●●●● patch | view | raw | blame | history
interface/lib/classes/tform_actions.inc.php
@@ -113,6 +113,8 @@
                        foreach($this->plugins as $plugin) {
                                $plugin->onInsert();
                        }
                        $this->onAfterUpdate();
                        if($_REQUEST["next_tab"] == '') {
                                $list_name = $_SESSION["s"]["form"]["return_to"];
@@ -151,6 +153,8 @@
                        foreach($this->plugins as $plugin) {
                                $plugin->onInsert();
                        }
                        $this->onAfterInsert();
                        if($_REQUEST["next_tab"] == '') {
                            $list_name = $_SESSION["s"]["form"]["return_to"];
@@ -170,6 +174,15 @@
                        $this->onError();
                }
        }
        function onAfterUpdate() {
            global $app, $conf;
        }
        function onAfterInsert() {
            global $app, $conf;
        }
        /**
        * Function called on data insert or update error