Page MenuHomePhabricator

Need hook in EditPage.php after content is loaded
Closed, DeclinedPublic

Description

I need a hook to modify the content of an article before it is displayed in the edit box. The best place for this would be in EditPage->getContent() right after the call to $this->mArticle->getContent(). The hooks inside Article->getContent() are not good enough since that function is called all over the place and not just on edit.

Something like this:

wfRunHooks( 'EditPageAfterFetchContent', array( &$this, &$text ) ) ;

This would allow an extension to modify content before it is edited or load additional metadata or whatever associated with the revision being edited.


Version: unspecified
Severity: enhancement

Details

Reference
bz30114

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 21 2014, 11:56 PM
bzimport set Reference to bz30114.
bzimport added a subscriber: Unknown Object (MLST).

Forget it. I can use another hook way later in execution.