function block_revisions_delete_revisions in Block Revisions 7
Same name and namespace in other branches
- 6 block_revisions.module \block_revisions_delete_revisions()
@todo Please document this function.
See also
1 string reference to 'block_revisions_delete_revisions'
File
- ./
block_revisions.module, line 187
Code
function block_revisions_delete_revisions($form, &$form_state) {
$values = $form_state['values'];
db_delete('boxes_revisions')
->condition('bid', $values['bid'])
->execute();
watchdog('content', "Deleted all remaining revisions for custom block '%title'.", array(
'%title' => $values['info'],
));
drupal_set_message(t("All revisions for custom block '%title' have been deleted.", array(
'%title' => $values['info'],
)));
}