For now you use:

$node->revision = variable_get('jeditable_create_new_revisions', false);
node_save($node);

This is not so good because D6 have "Create new revision" checkbox in "Workflow settings" fieldset in each content type settings.
There should be correct:

$node_options = variable_get('node_options_'. $node->type, array('status', 'promote'));
if (in_array('revision', $node_options) && !isset($node->revision)) {
 $node->revision = TRUE;
 $node->log = '';
}
node_save($node);

Comments

kevin.mcnamee@mailbox.org’s picture

Status: Active » Closed (won't fix)

Creating revisions is really outside the scope of this module. Therefore this feature will be removed completely in the next release of 6.x-2.x. The module now uses drupal_execute() instead of node_save() and revision generation is more correctly managed using the content type workflow settings.

/Kevin