Page MenuHomePhabricator

Add documentation file for Echo hooks
Open, NormalPublic

Description

Echo has several hooks which can be used by extensions. Please add a hooks.txt documentation file so that users can use them without having to spend time looking through the code.

Event Timeline

Glaisher created this task.Aug 26 2015, 5:29 PM
Glaisher raised the priority of this task from to Needs Triage.
Glaisher updated the task description. (Show Details)
Glaisher added a subscriber: Glaisher.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 26 2015, 5:29 PM
Catrope triaged this task as Normal priority.Aug 26 2015, 11:07 PM
Catrope moved this task from Untriaged to Freezer on the Collaboration-Team-Triage board.
Catrope added a subscriber: Catrope.
Legoktm added a subscriber: Legoktm.Sep 8 2015, 3:57 PM
km@km-tp ~/p/v/m/e/Echo> ack "Hooks::run" --php
Hooks.php
20:		Hooks::run( 'BeforeCreateEchoEvent', array( &$wgEchoNotifications, &$wgEchoNotificationCategories, &$wgEchoNotificationIcons ) );

Notifier.php
45:		if ( !Hooks::run( 'EchoAbortEmailNotification', array( $user, $event ) ) ) {
62:				Hooks::run( 'EchoGetBundleRules', array( $event, &$bundleString ) );

includes/model/Event.php
139:		if ( !Hooks::run( 'BeforeEchoEventInsert', array( $obj ) ) ) {
146:		Hooks::run( 'EchoEventInsertComplete', array( $obj ) );

includes/model/Notification.php
109:			Hooks::run( 'EchoGetBundleRules', array( $this->event, &$bundleKey ) );
172:		Hooks::run( 'EchoCreateNotificationComplete', array( $this ) );

includes/controller/NotificationController.php
96:			Hooks::run( 'EchoGetNotificationTypes', array( $user, $event, &$userNotifyTypes ) );
311:		Hooks::run( 'EchoGetDefaultNotifiedUsers', array( $event, &$users ) );
Restricted Application added a project: Growth-Team. · View Herald TranscriptAug 20 2018, 9:14 PM