'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"
+&$tabindex: HTML tabindex of the last edit check/button
+
+'EditPageBeforeEditChecks': allows modifying the edit checks below the textarea in the edit form
+&$editpage: The current EditPage object
+&$checks: Array of edit checks like "watch this page"/"minor edit"
+&$tabindex: HTML tabindex of the last edit check/button
'EditSectionLink': Do not use, use DoEditSectionLink instead.
$skin: Skin rendering the UI
$this->editFormTextAfterTools =
$this->editFormTextBottom = "";
}
+
+ function getArticle() {
+ return $this->mArticle;
+ }
/**
* Fetch initial editing page content.
Xml::check( 'wpWatchthis', $checked['watch'], $attribs ) .
" <label for='wpWatchthis'".$skin->tooltip('watch', 'withaccess').">{$watchLabel}</label>";
}
+ wfRunHooks( 'EditPageBeforeEditChecks', array( &$this, &$checkboxes, &$tabindex ) );
return $checkboxes;
}
);
$buttons['diff'] = Xml::element('input', $temp, '');
- wfRunHooks( 'EditPageBeforeEditButtons', array( &$this, &$buttons ) );
+ wfRunHooks( 'EditPageBeforeEditButtons', array( &$this, &$buttons, &$tabindex ) );
return $buttons;
}