Hi,
My code looks like..

$node_data_query = db_query("SELECT * FROM node ORDER BY node.nid DESC LIMIT 1");
while ($node_data = db_fetch_object($node_data_query)) {
$node_details = node_load($node_data->nid);
$aggregate_tag_array = $node_details->tags;
$aggregate_taxonomy_array = $node_details->taxonomy;
....
.... << There was some modifications done to $aggregate_tag_array and $aggregate_taxonomy_array >>....
....
$node_details->tags = $aggregate_tag_array;
$node_details->taxonomy = $aggregate_taxonomy_array;
}

Now i want to resave my node using node_save($node_details). Will it work directly or do i need to make some changes to $node_details before using node_save?

Comments

Ayesh’s picture

Nope, just a node_save() will do. It will trigger necessary node_api hooks and take care of most of the tasks.
Many modules do not rely on node form altering and adding custom submit handlers. If any module does, you will need to run them manually.