ForceGroup plugin: optionally force new users to join a particular group or set of groups on registration; and/or to force posts by members of particular groups to be posted into those groups even if not explicitly mentioned. The posting feature requires a couple quick hook additions in core.

This commit is contained in:
Brion Vibber
2010-09-30 16:25:15 -07:00
parent 2ecbae308d
commit 55a080ea4e
3 changed files with 91 additions and 2 deletions

View File

@@ -78,13 +78,19 @@ class DistribQueueHandler
}
try {
Event::handle('EndNoticeSave', array($notice));
// Enqueue for other handlers
Event::handle('EndNoticeDistribute', array($notice));
} catch (Exception $e) {
$this->logit($notice, $e);
}
try {
Event::handle('EndNoticeSave', array($notice));
} catch (Exception $e) {
$this->logit($notice, $e);
}
try {
// Enqueue for other handlers
common_enqueue_notice($notice);
} catch (Exception $e) {
$this->logit($notice, $e);