Page MenuHomePhabricator

Feature request on hook 'EditPage::showEditForm:initial'
Closed, ResolvedPublic

Description

Author: dabuum

Description:
The parameter $formCallback of the function EditPage.php->showEditForm(
$formCallback = null ) can not be set via the hook
'EditPage::showEditForm:initial'. So please change the line

"wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) ) ;"

to

"wfRunHooks( 'EditPage::showEditForm:initial', array( &$this, $formCallback ) ) ;"

With this it would be easier to add something to the EditForm instead of
changing the whole page.

Thanks,
Benedikt


Version: 1.6.x
Severity: enhancement
Platform: PC

Details

Reference
bz5800

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:13 PM
bzimport set Reference to bz5800.
bzimport added a subscriber: Unknown Object (MLST).

dabuum wrote:

sorry, line should be changed to

"wfRunHooks( 'EditPage::showEditForm:initial', array( &$this, &$formCallback ) ) ;"

Should be a reference to $formCallback.

Regards,
Benedikt