1 node.pages.inc | node_revision_delete_confirm($form, $form_state, $node_revision) |
Form constructor for the revision deletion confirmation form.
This form prevents against CSRF attacks.
Parameters
$node_revision: The node revision ID.
Return value
An array as expected by backdrop_render().:
See also
node_revision_delete_confirm_submit()
Related topics
File
- core/
modules/ node/ node.pages.inc, line 1010 - Callbacks for adding, editing, and deleting content and managing revisions.
Code
function node_revision_delete_confirm($form, $form_state, $node_revision) {
$form['#node_revision'] = $node_revision;
return confirm_form($form, t('Are you sure you want to delete the revision from %revision-date?', array('%revision-date' => format_date($node_revision->revision_timestamp))), 'node/' . $node_revision->nid . '/revisions', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}