Merge "Echo: Disable standard email notifications"

This commit is contained in:
Andrew Garrett 2012-07-18 16:28:41 +00:00 committed by Gerrit Code Review
commit c3b77b543e
2 changed files with 8 additions and 1 deletions

View file

@ -121,6 +121,9 @@ $wgHooks['WatchArticleComplete'][] = 'EchoHooks::onWatch';
$wgHooks['UnwatchArticleComplete'][] = 'EchoHooks::onUnwatch';
$wgHooks['ArticleSaveComplete'][] = 'EchoHooks::onArticleSaved';
// Disable ordinary email notifications
$wgHooks['AbortEmailNotification'][] = 'EchoHooks::abortEmailNotification';
// Configuration
$wgEchoDefaultNotificationTypes = array(

View file

@ -147,4 +147,8 @@ class EchoHooks {
return true;
}
}
static function abortEmailNotification() {
return false;
}
}