aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/include/functions.php4
-rw-r--r--include/functions_user.inc.php8
2 files changed, 12 insertions, 0 deletions
diff --git a/admin/include/functions.php b/admin/include/functions.php
index e33a45ecc..bbd5ee80f 100644
--- a/admin/include/functions.php
+++ b/admin/include/functions.php
@@ -124,6 +124,7 @@ DELETE FROM '.CATEGORIES_TABLE.'
{
$counts['del_categories']+= count($ids);
}
+ trigger_action('delete_categories', $ids);
}
// The function delete_elements deletes the elements identified by the
@@ -200,6 +201,7 @@ DELETE FROM '.IMAGES_TABLE.'
{
$counts['del_elements']+= count($ids);
}
+ trigger_action('delete_elements', $ids);
}
// The delete_user function delete a user identified by the $user_id
@@ -268,6 +270,8 @@ DELETE FROM '.USERS_TABLE.'
WHERE '.$conf['user_fields']['id'].' = '.$user_id.'
;';
pwg_query($query);
+
+ trigger_action('delete_user', $user_id);
}
/**
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 3cdae176e..6cf5de9a7 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -125,6 +125,14 @@ SELECT id
}
create_user_infos($next_id);
+
+ trigger_action('register_user',
+ array(
+ 'id'=>$next_id,
+ 'username'=>$login,
+ 'email'=>$mail_address,
+ )
+ );
}
return $errors;