node_revision_revert_confirm
modules/node/node.module, строка 1782
- Версии
- 5
node_revision_revert_confirm(
$node)- 6
node_revision_revert_confirm($form_state, $node_revision)
Ask for confirmation of the reversion to prevent against CSRF attacks.
Код
<?php
function node_revision_revert_confirm($node) {
$form['node'] = array('#type' => 'value', '#value' => $node);
return confirm_form($form, t('Are you sure you want to revert to the revision from %revision-date?', array('%revision-date' => format_date($node->revision_timestamp))), 'node/'. $node->nid .'/revisions', '', t('Revert'), t('Cancel'));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии