[support] I need to create multiple CCk nodes as an action.
    Rajaram Shyamala 
    shyamala at netlinkindia.com
       
    Sun Oct 21 16:40:00 UTC 2007
    
    
  
I am able to query the nodes linked to a specific taxonomy and generate nodes, but in my loop the nodes get over written and in the end I hav eonly the last node.
Code:
 while ($node_tid = db_fetch_object($result)) { 
           global $user;
   $question->uid = $user->uid;
   
   $question->type= 'questions';
   $question->title = $node_tid->title;
           // $question = node_submit($question);
   $question->taxonomy = $category;
   $question->og_groups[]  = $gid;
  
         
    $new_id= node_submit($question);
     node_save($new_id);
         cache_clear_all();    
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20071021/e246691b/attachment.htm 
    
    
More information about the support
mailing list