Active
Project:
Node Save Service
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Oct 2009 at 18:08 UTC
Updated:
7 Oct 2011 at 18:14 UTC
Hi,
What are the advantage over drupal_execute() ?
Thanks in advance
Comments
Comment #1
pokadan commentedThere are plenty. Date module does not play nicely with drupal_execute for instance.
Comment #2
hefox commentedPros:
1) Faster -- drupal_execute is a beast
2) Easier to structure the data to save. Various CCK fields need their data transformed to an odd format for drupal_execute to work, whereas the format for node_save is much easier to figure out.
Cons:
1) Higher likelihood of missing default value or info added to the form
2) No validation, so inaccurate nodes can be created