Drupal 7: Populate node fields with values from $form -


i know if it's possible populate node fields values form_state or that.

basically show register form merged form content type. using field_attach_form(). on submit create node using:

$node = new stdclass(); $node->type = 'company'; $node->uid = 1; node_object_prepare($node);

and values form_state , put them node.

many thanks!

hook form, add new submit handler , place code there.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -