public function DrupalEntityControllerInterface::load
public DrupalEntityControllerInterface::load($ids = array(), $conditions = array())
Loads one or more entities.
Parameters
$ids: An array of entity IDs, or FALSE to load all entities.
$conditions: An array of conditions. Keys are field names on the entity's base table. Values will be compared for equality. All the comparisons will be ANDed together. This parameter is deprecated; use an EntityFieldQuery instead.
Return value
An array of entity objects indexed by their ids. When no results are found, an empty array is returned.
File
- includes/entity.inc, line 39
Class
- DrupalEntityControllerInterface
- Interface for entity controller classes.
Code
public function load($ids = array(), $conditions = array());
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!entity.inc/function/DrupalEntityControllerInterface::load/7.x