diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-03-15 20:58:22 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-01 10:17:05 +0200 |
commit | 5b226c400280588349eb3a4cab9780ae98d20c0f (patch) | |
tree | 38872cdf7d7dbabdd566de05edd4f912cdcfbaff /phpBB | |
parent | 77845c147818b4199005363a3168bbb44dc46641 (diff) | |
download | forums-5b226c400280588349eb3a4cab9780ae98d20c0f.tar forums-5b226c400280588349eb3a4cab9780ae98d20c0f.tar.gz forums-5b226c400280588349eb3a4cab9780ae98d20c0f.tar.bz2 forums-5b226c400280588349eb3a4cab9780ae98d20c0f.tar.xz forums-5b226c400280588349eb3a4cab9780ae98d20c0f.zip |
[feature/events] Adding ledges user_delete
Used by phpBB Gallery
PHPBB3-9550
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/includes/functions_user.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index b50dcac49c..32529ec308 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -336,7 +336,7 @@ function user_add($user_row, $cp_data = false) */ function user_delete($mode, $user_id, $post_username = false) { - global $cache, $config, $db, $user, $auth; + global $cache, $config, $db, $user, $auth, $phpbb_dispatcher; global $phpbb_root_path, $phpEx; $sql = 'SELECT * @@ -540,6 +540,11 @@ function user_delete($mode, $user_id, $post_username = false) $db->sql_transaction('commit'); + $vars = array('mode', 'user_id', 'post_username'); + $event = new phpbb_event_data(compact($vars)); + $phpbb_dispatcher->dispatch('core.user_delete', $event); + extract($event->get_data_filtered($vars)); + // Reset newest user info if appropriate if ($config['newest_user_id'] == $user_id) { |