DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:media_delete_file

This is an old revision of the document!


MEDIA_DELETE_FILE

Description:
Intercept file deletion
DefaultAction:
Deletes a file
Preventable:
yes
Added:
2008-10-01

This event is signalled by media_delete() in inc/media.php. You can use this event to intercept the file deletion process.

Passed Data

  • $data['id'] ⇒ ID
  • $data['unl'] ⇒ unlink return code
  • $data['del'] ⇒ Namespace directory unlink return code
  • $data['name'] ⇒ file name
  • $data['path'] ⇒ full path to the file
  • $data['size'] ⇒ file size

Plugins handling this event

The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.

See also

devel/event/media_delete_file.1527607364.txt.gz · Last modified: 2018-05-29 17:22 by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki