Page MenuHomePhabricator

Notify extensions when a media file is deleted
Closed, ResolvedPublic

Description

Author: bugzilla

Description:
It would be nice to have the hooks 'ImageDelete' and 'ImageDeleteComplete' in the same way that 'ArticleDelete'/'ArticleDeleteComplete' hooks operate.

Maybe 'includes/ImagePage.php' 'doDelete' method can just be adjusted to support the same hooks as the base class 'Article' i.e. integrate 'ArticleDelete' and 'ArticleDeleteComplete'.


https://www.mediawiki.org/wiki/Special:Code/MediaWiki/r31420

Details

Reference
bz11276

Event Timeline

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

FileDeleteComplete hook was introduced in r31420.

Krinkle renamed this task from ImageDelete & ImageDeleteComplete hooks. to Notify extensions when a media file is deleted.Apr 11 2020, 7:48 PM
Krinkle removed a subscriber: wikibugs-l-list.
Krinkle updated the task description. (Show Details)