function revisioning_delete_archived_confirm in Revisioning 6.3
Same name and namespace in other branches
- 8 revisioning.pages.inc \revisioning_delete_archived_confirm()
- 7 revisioning.pages.inc \revisioning_delete_archived_confirm()
1 string reference to 'revisioning_delete_archived_confirm'
- revisioning_menu_alter in ./
revisioning.module - Implementation of hook_menu_alter().
File
- ./
revisioning.pages.inc, line 156 - Rendering and altering of pages and forms used by Revisioning
Code
function revisioning_delete_archived_confirm($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'));
}