mediawiki-extensions-Replac.../hooks.txt
Abijeet 986b51e5a2 Add ReplaceTextFilterPageTitlesForRename hook to avoid pages to rename
Allows other extensions to specify pages that should not be renamed.

Bug: T313148
Change-Id: I47b4549b90fe30be7a80e74db60d16be6776e7f6
2023-06-15 13:13:30 +00:00

13 lines
633 B
Plaintext

This document describes how event hooks work in the ReplaceText extension;
For a more comprehensive guide to hooks, navigate to your root MediaWiki
directory, and then find /docs/Hooks.md.
=== PHP events ===
;ReplaceTextFilterPageTitlesForEdit: Provides other extension the ability to avoid editing content on pages based on their titles.
\TitleArrayFromResult &$titles: Array of page titles whose content will be edited
;ReplaceTextFilterPageTitlesForRename: Provides other extension the ability to avoid renaming pages based on their titles.
\TitleArrayFromResult &$titles: Array of page titles being renamed