Manual:Hooks/APIEditBeforeSave

Details

 * $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.