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'));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии

Вход в систему