You are here

function revisioning_delete_archived_confirm in Revisioning 7

Same name and namespace in other branches
  1. 8 revisioning.pages.inc \revisioning_delete_archived_confirm()
  2. 6.3 revisioning.pages.inc \revisioning_delete_archived_confirm()

Return a confirmation page for deleting archived revisione.

1 string reference to 'revisioning_delete_archived_confirm'
revisioning_menu in ./revisioning.module
Implements hook_menu().

File

./revisioning.pages.inc, line 202
Rendering and altering of pages and forms used by Revisioning.

Code

function revisioning_delete_archived_confirm($form, &$form_state, $node) {
  $node->num_archived = revisioning_get_number_of_archived_revisions($node);
  $form['node'] = array(
    '#type' => 'value',
    '#value' => $node,
  );
  $t = format_plural($node->num_archived, 'Are you sure you want to delete the archived revision of %title?', 'Are you sure you want to delete all @count archived revisions of %title?', array(
    '%title' => $node->title,
  ));
  return confirm_form($form, $t, 'node/' . $node->nid . '/revisions', t('This action cannot be undone.'), t('Delete archived'), t('Cancel'));
}