function mee_scald_atom_delete in Scald: Media Management made easy 7
Implements hook_scald_atom_delete().
File
- modules/
fields/ mee/ mee.module, line 569 - Defines a special textarea, with drag and drop media driven by Scald and dnd.module.
Code
function mee_scald_atom_delete($atom) {
// @todo Verify if the deleted atom is required for some nodes, they will be
// unpublished.
// Then delete all links in the Resource manager.
db_delete('mee_resource')
->condition('atom_sid', $atom->sid)
->execute();
}