function _editablefields_node_save in Editable Fields 6.2
1 call to _editablefields_node_save()
- editablefields_submit in ./
editablefields.module - Menu callback: ajax submit.
File
- ./
editablefields.module, line 378 - Editable fields module.
Code
function _editablefields_node_save($node) {
// On load, nodecomment stores $node->comment in $node->node_comment
// and sets $node->comment to COMMENT_NODE_DISABLED.
// On node_save($node) the last value is written to the database
// so we have to do the reverse before and restore after save.
// But only when the nodecomment module is installed and enabled.
if (module_exists('nodecomment')) {
//
$node_comment = $node->comment;
$node_node_comment = $node->node_comment;
}
node_save($node);
if (module_exists('nodecomment')) {
$node->node_comment = $node_node_comment;
$node->comment = $node_comment;
}
}