aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-07-28 18:54:00 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:18:54 +0200
commit8d3389448bf65f1bfc78efbfc80d0b658661f3da (patch)
tree7765ba6d79799553c81cc43682166286db0222bd /phpBB/includes/functions_user.php
parent3affe7f229f4c8a3bb4ddb1abd79aca0dc0c15a9 (diff)
downloadforums-8d3389448bf65f1bfc78efbfc80d0b658661f3da.tar
forums-8d3389448bf65f1bfc78efbfc80d0b658661f3da.tar.gz
forums-8d3389448bf65f1bfc78efbfc80d0b658661f3da.tar.bz2
forums-8d3389448bf65f1bfc78efbfc80d0b658661f3da.tar.xz
forums-8d3389448bf65f1bfc78efbfc80d0b658661f3da.zip
[feature/php-events] Fix docs and naming of core.delete_group_after
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php14
1 files changed, 11 insertions, 3 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 8f91a66549..c78c74bd76 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -2843,9 +2843,6 @@ function group_delete($group_id, $group_name = false)
$teampage->delete_group($group_id);
unset($teampage);
- $vars = array('group_id', 'group_name');
- extract($phpbb_dispatcher->trigger_event('core.group_delete', compact($vars)));
-
// Delete group
$sql = 'DELETE FROM ' . GROUPS_TABLE . "
WHERE group_id = $group_id";
@@ -2856,6 +2853,17 @@ function group_delete($group_id, $group_name = false)
WHERE group_id = $group_id";
$db->sql_query($sql);
+ /**
+ * Event after a group is deleted
+ *
+ * @event core.delete_group_after
+ * @var int group_id ID of the deleted group
+ * @var string group_name Name of the deleted group
+ * @since 3.1-A1
+ */
+ $vars = array('group_id', 'group_name');
+ extract($phpbb_dispatcher->trigger_event('core.delete_group_after', compact($vars)));
+
// Re-cache moderators
if (!function_exists('cache_moderators'))
{