3

Node not saved to DB when node_save called within hook_insert

http://drupal.org

Is it a bad idea to call node_save inside hook_insert? I have a custom content type; inside its hook_insert I do node_save on another custom content type. But I noticed that the original node (hook_insert) wasn't saved but the second node was (node_save). Is this a no-no? Or any workarounds?

Thanks

Read »
Created by Dplanet 2 years 48 weeks ago
Category: Modules   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Recent comments