diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-07-28 17:02:18 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-01 10:18:54 +0200 |
commit | ec957350c14c8b0bb6dc4768b5ad363a39715cab (patch) | |
tree | 0b445f5532a03c49c771a049e8ef40b93c4771db /phpBB/includes/functions_user.php | |
parent | c903b1512c9926dfbc54e4e48233904385c137c6 (diff) | |
download | forums-ec957350c14c8b0bb6dc4768b5ad363a39715cab.tar forums-ec957350c14c8b0bb6dc4768b5ad363a39715cab.tar.gz forums-ec957350c14c8b0bb6dc4768b5ad363a39715cab.tar.bz2 forums-ec957350c14c8b0bb6dc4768b5ad363a39715cab.tar.xz forums-ec957350c14c8b0bb6dc4768b5ad363a39715cab.zip |
[feature/php-events] Fix docs and naming of core.delete_user_after
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index eef75b8430..de65d86e3f 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -546,8 +546,17 @@ function user_delete($mode, $user_id, $post_username = false) $db->sql_transaction('commit'); + /** + * Event after an user is deleted + * + * @event core.delete_user_after + * @var string mode Mode of deletion (retain/delete posts) + * @var int user_id ID of the deleted user + * @var mixed post_username Guest username that is being used or false + * @since 3.1-A1 + */ $vars = array('mode', 'user_id', 'post_username'); - extract($phpbb_dispatcher->trigger_event('core.user_delete', compact($vars))); + extract($phpbb_dispatcher->trigger_event('core.delete_user_after', compact($vars))); // Reset newest user info if appropriate if ($config['newest_user_id'] == $user_id) |