You are here

function block_revisions_delete_revisions in Block Revisions 7

Same name and namespace in other branches
  1. 6 block_revisions.module \block_revisions_delete_revisions()

@todo Please document this function.

See also

http://drupal.org/node/1354

1 string reference to 'block_revisions_delete_revisions'
block_revisions_form_block_custom_block_delete_alter in ./block_revisions.module
Implements hook_form_FORM_ID_alter().

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'],
  )));
}