aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-11-14 00:51:15 +0000
committerrvelices <rv-github@modusoptimus.com>2006-11-14 00:51:15 +0000
commit998385c48d403c5a88bf06d7f36ec27d26a0b82c (patch)
tree92db05c29caa905ae46b947e8a66fea8bd8de07e /admin/include
parent724671b669d5a0e5a2ffb684ffd4534584c52113 (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 'admin/include')
-rw-r--r--admin/include/functions.php4
1 files changed, 4 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);
}
/**