You are here

function entityform_load in Entityform 7.2

Same name and namespace in other branches
  1. 7 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()

6 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_anonymous_entityform_previous_submission_alter in entityform_anonymous/entityform_anonymous.module
Implements hook_entityform_previous_submission_alter().
entityform_confirm_page in ./entityform.module
Page callback
entityform_type_page_title in ./entityform.module

... See full list

File

./entityform.module, line 529
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);
}