You are here

function entityform_load in Entityform 7

Same name and namespace in other branches
  1. 7.2 entityform.module \entityform_load()

Fetch a entityform object. Make sure that the wildcard you choose in the entityform entity definition fits the function name here.

Parameters

$entityform_id: Integer specifying the entityform id.

$reset: A boolean indicating that the internal cache should be reset.

Return value

A fully-loaded $entityform object or FALSE if it cannot be loaded.

See also

entityform_load_multiple()

4 calls to entityform_load()
EntityformUIController::confirm_path in ./entityform.admin.inc
entityform_access in ./entityform.module
Determines whether the given user has access to a entityform.
entityform_confirm_page in ./entityform.module
Page callback
entityform_user_previous_submission in ./entityform.module
Get previous submission for a form for a user

File

./entityform.module, line 525
Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface

Code

function entityform_load($entityform_id, $reset = FALSE) {
  $entityforms = entityform_load_multiple(array(
    $entityform_id,
  ), array(), $reset);
  return reset($entityforms);
}