답변:
표준 Drupal 설치에서는 "대기 중"개정을 작성할 수 없습니다. 두 가지 옵션이 있습니다.
옵션 1의 경우 :이 코드를 새 규칙으로 추가하거나 새 모듈에서 사용할 수 있습니다
<?php
// Programatically load the existing revision and save it
// Taken from http://api.drupal.org/api/drupal/modules!node!node.module/function/node_save/7
// Load the revision
$original_revision = node_load($nid);
$original_revision->revision = 1;
$original_revision->log = t('Copy of the revision from %date.', array('%date' => format_date($original_revision->revision_timestamp)));
$new_revision = node_load($nid);
// Make any changes to the new revision here...
$new_revision->revision = 1;
$new_revision->log = t('Summarize your changes here');
// Save the new revision first
node_save($new_revision);
// Save the original one again so that it is still the current revision
node_save($original_revision);
watchdog('content', '@type: reverted %title revision %revision.', array('@type' => $node_revision->type, '%title' => $node_revision->title, '%revision' => $node_revision->vid));
drupal_set_message(t('@type %title was saved with a new revision, but reverting to original revision from %revision-date.', array('@type' => node_type_get_name($node_revision), '%title' => $node_revision->title, '%revision-date' => format_date($node_revision->revision_timestamp))));
drupal_goto('node/' . $node_revision->nid . '/revisions');
?>
옵션 2의 경우 개정 또는 워크 플로보다 워크 벤치를 권장하지만 필요에 따라 각각 다릅니다. Workbench는 Revisioning의 후속 제품이며 Workflow는 단순한 버전 제어 이상의 기능을 제공하므로 요구 사항에 적합하지 않을 수도 있습니다.
다음 은 Workbench와 Workflow의 차이점에 대한 빠른 분석 입니다.