Skip to content

Instantly share code, notes, and snippets.

@sushantpaste
Created November 20, 2013 10:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sushantpaste/7560798 to your computer and use it in GitHub Desktop.
Save sushantpaste/7560798 to your computer and use it in GitHub Desktop.
$form = new Entityform(array('type' = 'my_entitty_form', 'language' => LANGUAGE_NONE));
$form->field_entityform_1 = array(LANGUAGE_NONE => array(array('value' => 'field_1')));
$form->field_entityform_2 = array(LANGUAGE_NONE => array(array('value' => 'field_2' )));
$form->uid = 1; // this is the form id
entityform_save($form);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment