function feedback_delete_multiple in Feedback 7.2
Deletes multiple feedback entries.
Parameters
$fids: An array of feedback entry IDs.
2 calls to feedback_delete_multiple()
- feedback_delete in ./
feedback.module - Deletes a feedback entry.
- feedback_user_delete in ./
feedback.module - Implements hook_user_delete().
1 string reference to 'feedback_delete_multiple'
- feedback_mollom_form_list in ./
feedback.module - Implements hook_mollom_form_list().
File
- ./
feedback.module, line 591 - Allows site visitors and users to report issues about this site.
Code
function feedback_delete_multiple($fids) {
if (!empty($fids)) {
$entries = feedback_load_multiple($fids);
foreach ($entries as $fid => $entry) {
field_attach_delete('feedback', $entry);
module_invoke_all('feedback_delete', $entry);
module_invoke_all('entity_delete', $entry, 'feedback');
}
db_delete('feedback')
->condition('fid', $fids, 'IN')
->execute();
}
}