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
This commit is contained in:
parent
724671b669
commit
998385c48d
2 changed files with 12 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue