diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-11-14 00:51:15 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-11-14 00:51:15 +0000 |
commit | 998385c48d403c5a88bf06d7f36ec27d26a0b82c (patch) | |
tree | 92db05c29caa905ae46b947e8a66fea8bd8de07e | |
parent | 724671b669d5a0e5a2ffb684ffd4534584c52113 (diff) |
plugins: added actions for register_user, delete_categories, delete_elements
and delete_user
git-svn-id: http://piwigo.org/svn/trunk@1605 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/include/functions.php | 4 | ||||
-rw-r--r-- | include/functions_user.inc.php | 8 |
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; |