Manual:Hooks/APIEditBeforeSave/zh

细节

 * $editPage: the EditPage object
 * $text: the new text of the article (has yet to be saved)
 * $resultArr: data in this array will be added to the API result

注释
Return true to continue processing, return false to abort processing and reject the edit. If $resultArr was filled, the API will return an  element with the contents of $resultArr added in. If $resultArr wasn't filled, the API will return an error message.