node_save()

Fix for Function to add taxonomy and content_taxonomy to a node object

  1. // Sample usage:
  2. $node = new StdClass();
  3. $node->type= "story";
  4. $node->title = "Hello world";
  5. $tags = array('red', 'white', 'blue');
  6. my_nodeobject_add_content_taxonomy(&$node, 1, $tags,  'create',

Function to add taxonomy and content_taxonomy to a node object

  1. /**
  2.  * Modifies a node object adding taxonomy terms and, optionally, modifying a
  3.  * content_taxonomy type field.
  4.  *
  5.  * @param <type> $node
  6.  *   A node object.
  7.  * @param <type> $vid
  8.  *   The voc

Problem with node_load() and node_save()

  1. An example of node and its contents:
  2. ------------------------------------------------
  3. nid = '1'
  4. title = 'Node for Test'
  5. body = 'Text of test of the node, this line it must be deleted when modifyin
Syndicate content