Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1431477
EditFilterHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
EditFilterHook.php
View Options
<?php
namespace
MediaWiki\Hook
;
use
MediaWiki\EditPage\EditPage
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "EditFilter" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
EditFilterHook
{
/**
* Use this hook to perform checks on an edit.
*
* @since 1.35
*
* @param EditPage $editor Edit form (see includes/EditPage.php)
* @param string $text Contents of the edit box
* @param string $section Section being edited
* @param string &$error Error message to return
* @param string $summary Edit summary for page
* @return bool|void True or no return value without altering $error to allow the
* edit to continue. Modifying $error and returning true will cause the contents
* of $error to be echoed at the top of the edit form as wikitext. Return false
* to halt editing; you'll need to handle error messages, etc. yourself.
*/
public
function
onEditFilter
(
$editor
,
$text
,
$section
,
&
$error
,
$summary
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 20:32 (1 d, 6 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
aa/0d/4b26ee59a86afeeb9b8067f1eaf6
Default Alt Text
EditFilterHook.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment