Hi,

What are the advantage over drupal_execute() ?

Thanks in advance

Comments

pokadan’s picture

There are plenty. Date module does not play nicely with drupal_execute for instance.

hefox’s picture

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