added preDeleteActions()
This commit is contained in:
parent
f20325c0e0
commit
896c8f89d4
|
@ -143,6 +143,17 @@ if ($_POST['delete']) {
|
|||
$module = array_keys($_SESSION['account']->module);
|
||||
$attributes = array();
|
||||
$errors = array();
|
||||
// predelete actions
|
||||
if (!$stopprocessing) {
|
||||
foreach ($module as $singlemodule) {
|
||||
$success = $_SESSION['account']->module[$singlemodule]->preDeleteActions();
|
||||
if (!$success) {
|
||||
$stopprocessing = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!$stopprocessing) {
|
||||
// load attributes
|
||||
foreach ($module as $singlemodule) {
|
||||
// load changes
|
||||
|
@ -197,12 +208,13 @@ if ($_POST['delete']) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!$stopprocessing) {
|
||||
$errors = deleteDN($_SESSION['delete_dn'][$m]);
|
||||
if (sizeof($errors) > 0) $stopprocessing = true;
|
||||
}
|
||||
if (!$stopprocessing) {
|
||||
// post delete actions
|
||||
if (!$stopprocessing) {
|
||||
foreach ($module as $singlemodule) {
|
||||
$_SESSION['account']->module[$singlemodule]->postDeleteActions();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue