< Extension:CentralNotice < Hooks
| CentralNoticeCampaignChange | |
|---|---|
| Available from version ??? (Gerrit change 493459) |
|
| Define function: | public static function onCentralNoticeCampaignChange( string $action, string $time, string $campaignName, User $user, array $settingsBeforeChanges, array $settingsAfterChanges, ?string $summary ) { ... }
|
| Attach hook: | $wgHooks['CentralNoticeCampaignChange'][] = 'MyExtensionHooks::onCentralNoticeCampaignChange';
|
| Called from: | File(s): CentralNotice / includes/Campaign.php Function(s): processAfterCampaignChange |
For more information about attaching hooks, see Manual:Hooks.
For examples of other extensions using this hook, see Category:CentralNoticeCampaignChange extensions.
This hook cannot be aborted.
Parameters
$action: Astring, which represents an action related to a campaign. This can be either'created','modified', or'removed'$time: Astringrepresenting a database timestamp as returned byIDatabase::timestamp()$campaignName: Astringrepresenting the name of the campaign$user: An instance ofUser, representing the user causing the change to the campaign$settingsBeforeChanges: Anarrayrepresenting the campaign settings before changes, as returned byCampaign::processSettingsForHook(a private static method)$settingsAfterChanges: Anarrayrepresenting the campaign settings after changes, as returned byCampaign::processSettingsForHook(a private static method)$summary: Represents astringif a user gave a change summary, ornullif the user did not.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.