DokuWiki

It's better when it's simple

User Tools

Site Tools


Sidebar

Translations of this page?:

Learn about DokuWiki

Advanced Use

Corporate Use

Our Community


Follow us on Facebook, Twitter and other social networks.

Our Privacy Policy

devel:event:media_delete_file

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

See also

devel/event/media_delete_file.txt · Last modified: 2018-12-08 15:52 by torpedo