You are here

function _revision_deletion_delete_revisions in Revision Deletion 7

Delete nodes.

Parameters

array $nids: Array of $nid's to delete.

string $destination: Redirect destination.

2 calls to _revision_deletion_delete_revisions()
revision_deletion_admin_overview_submit in ./revision_deletion.admin.inc
Process revision_deletion_admin_overview form submissions.
revision_deletion_node_overview_submit in ./revision_deletion.admin.inc
Process revision_deletion_node_overview form submissions.

File

./revision_deletion.helpers.inc, line 159
Helper functions.

Code

function _revision_deletion_delete_revisions(array $nids, $destination = NULL) {
  foreach ($nids as $nid) {
    _revision_deletion_delete_revision($nid);
  }
  cache_clear_all();
  drupal_set_message(format_plural(count($nids), 'Deleted 1 revision.', 'Deleted @count revisions.'));

  // drupal_goto($destination);
}