Sunday, September 20, 2009

programmatically node edit content type

programmatically node edit content type
<?php
$n = node_load(array('nid' => $nid));

// Edit node fields here, e.g. change $n->title

node_save($n);
?>

No comments: