aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-03-15 20:59:15 +0100
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:17:05 +0200
commitae49d6dca2fd17b2b4735c2026871d1a9250b4ad (patch)
tree7b5917312f6a5ce4552eb5afbd49504d16b5e452 /phpBB/includes/functions_user.php
parent5b226c400280588349eb3a4cab9780ae98d20c0f (diff)
downloadforums-ae49d6dca2fd17b2b4735c2026871d1a9250b4ad.tar
forums-ae49d6dca2fd17b2b4735c2026871d1a9250b4ad.tar.gz
forums-ae49d6dca2fd17b2b4735c2026871d1a9250b4ad.tar.bz2
forums-ae49d6dca2fd17b2b4735c2026871d1a9250b4ad.tar.xz
forums-ae49d6dca2fd17b2b4735c2026871d1a9250b4ad.zip
[feature/events] Adding ledge group_delete
Used by phpBB Gallery PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 32529ec308..0e751ba890 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -2769,7 +2769,7 @@ function avatar_remove_db($avatar_name)
*/
function group_delete($group_id, $group_name = false)
{
- global $db, $phpbb_root_path, $phpEx;
+ global $db, $phpbb_root_path, $phpEx, $phpbb_dispatcher;
if (!$group_name)
{
@@ -2818,6 +2818,11 @@ function group_delete($group_id, $group_name = false)
$teampage->delete_group($group_id);
unset($teampage);
+ $vars = array('group_id', 'group_name');
+ $event = new phpbb_event_data(compact($vars));
+ $phpbb_dispatcher->dispatch('core.group_delete', $event);
+ extract($event->get_data_filtered($vars));
+
// Delete group
$sql = 'DELETE FROM ' . GROUPS_TABLE . "
WHERE group_id = $group_id";