Entityform - "The form has become outdated." error I have an entityform that appears on a page, for some reason the form will not submit ... 

// implement hook_menu

function foiagen_menu() {
  $items['node/%node/foiagen'] = array(
    'title' =&gt; 'Foia Generator',
      'description' =&gt; 'A foia generator form.',
      'page callback' =&gt; 'drupal_get_form',
      'page arguments' =&gt; array('foiagen_form', 1),
      'access callback' =&gt; TRUE,
  );
return $items;
}

// embed the form (it's an entityform).

function foiagen_form($form, &amp;$form_state) {
  module_load_include('inc', 'entityform', 'entityform.admin');
  $entity_form_name = 'foia_generator';
  $render_estimate_form =
    entityform_form_wrapper(entityform_empty_load($entity_form_name), 'submit', 'embedded');
  $form['foiagen'] = $render_estimate_form;
  return $form;
}

function foiagen_form_validate($form, &amp;$form_state) {
}

function foiagen_form_submit($form, &amp;$form_state) {
}


I have tried to wrap my head around this solution but cannot figure out where, once my form is rendered, filled and the submit button pressed the 'update' occurs that makes the input void...

I have seen the comment here and tried adding

 $form['#token'] = NULL;


to my 'function foiagen_form' that does circumvent the 'The form has become outdated.' error but leads to a blank page. Indicating that perhaps something else altogether is malfunctioning.


  following direction from answer came up with this:


function foia_generator_form($form, &amp;$form_state) {
  form_load_include($form_state, 'inc', 'entityform', 'entityform.admin');
  $entityform = entity_create('entityform', array(
    'type' =&gt; "foia_generator",
  ));
  $form = entityform_form_wrapper($entityform);
  return $form;
}
It looks like you may have a hook namespace collision with hook_form().

Although that might only be called if you're defining a node type, it's probably worth using a more specific function name for your form builder (e.g function foiagen_generator_form). Also make sure you're returning the form build array (array of elements), and not the rendered form in your form build function.