$error to allow the edit to proceed.
'EditPageBeforeEditButtons': allows modifying the edit buttons below the textarea in the edit form
+&$editpage: The current EditPage object
&$buttons: Array of edit buttons "Save", "Preview", "Live", and "Diff"
'EditSectionLink': Override the return value of Linker::editSectionLink()
);
$buttons['diff'] = wfElement('input', $temp, '');
- wfRunHooks( 'EditPageBeforeEditButtons', array( &$buttons ) );
+ wfRunHooks( 'EditPageBeforeEditButtons', array( &$this, &$buttons ) );
return $buttons;
}