function node_revision_delete_batch_delete_prior_revisions in Node Revision Delete 7.3
Process for one batch step, deleting a prior revision.
Parameters
int $nid: The node id.
int $revision: The current revision.
array $context: The context.
1 string reference to 'node_revision_delete_batch_delete_prior_revisions'
- _node_revision_delete_delete_batch_op in ./
node_revision_delete.module - Batch operation definition: deleting prior revisions.
File
- ./
node_revision_delete.batch.inc, line 99 - Batch API callbacks for node_revision_delete module.
Code
function node_revision_delete_batch_delete_prior_revisions($nid, $revision, array &$context) {
if (empty($context['results'])) {
$context['results']['revisions'] = 0;
}
// Count the number of revisions deleted.
$context['results']['revisions']++;
$context['results']['node'] = $nid;
$context['message'] = t('Processing revision: @id', array(
'@id' => $revision,
));
node_revision_delete($revision);
}