You are here

function formassembly_load in FormAssembly 7

Load a single fa_form entity.

Parameters

int $eid: The unique Drupal entity ID

bool $reset: Flag to reset cache

Return value

FormAssemblyEntity The return value is either a FormAssembly Entity or FALSE

1 string reference to 'formassembly_load'
formassembly_entity_info in ./formassembly.module
Implements hook_entity_info().

File

./formassembly.module, line 82
Contains hooks implementations and callbacks to non-admin pages.

Code

function formassembly_load($eid, $reset = FALSE) {
  $form = formassembly_load_multiple(array(
    $eid,
  ), $reset);
  if (isset($form[$eid])) {
    return $form[$eid];
  }
  else {
    return FALSE;
  }
}