Closed (won't fix)
Project:
jEditable inline content editing
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2011 at 23:49 UTC
Updated:
25 Apr 2012 at 07:29 UTC
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
Comment #1
kevin.mcnamee@mailbox.org commentedCreating 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