Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Pros:
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
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