function field_collection_item_load in Field collection 7
Loads a field collection item.
Return value
The field collection item entity or FALSE.
9 calls to field_collection_item_load()
- FieldCollectionBasicTestCase::testCRUD in ./
field_collection.test - Tests CRUD.
- field_collection_feeds_set_target in ./
field_collection.module - Process Field Collection items.
- field_collection_field_delete in ./
field_collection.module - Implements hook_field_delete().
- field_collection_field_formatter_view in ./
field_collection.module - Implements hook_field_formatter_view().
- field_collection_field_get_entity in ./
field_collection.module - Gets a field collection item entity for a given field item.
File
- ./
field_collection.module, line 178 - Module implementing field collection field type.
Code
function field_collection_item_load($item_id, $reset = FALSE) {
$result = field_collection_item_load_multiple(array(
$item_id,
), array(), $reset);
return $result ? reset($result) : FALSE;
}