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
Post a Comment