You are here

function paragraphs_item_load in Paragraphs 7

Loads a paragraphs item.

Parameters

int $item_id: The paragraphs item ID.

bool $reset: Should we reset the entity cache?

Return value

ParagraphsItemEntity The paragraphs item entity or FALSE.

4 calls to paragraphs_item_load()
MigrateDestinationParagraphsItem::import in migrate/destinations/MigrateDestinationParagraphsItem.inc
Import a single node.
paragraphs_clone_items in ./paragraphs.node_clone.inc
Clone a Paragraphs item. Helper function for hook_clone_node_alter().
paragraphs_field_get_entity in ./paragraphs.module
Gets a paragraphs item entity for a given field item.
paragraphs_field_property_set in ./paragraphs.module
Entity property info setter callback for the paragraph items.

File

./paragraphs.module, line 46
Paragraphs hooks and common functions.

Code

function paragraphs_item_load($item_id, $reset = FALSE) {
  $result = paragraphs_item_load_multiple(array(
    $item_id,
  ), array(), $reset);
  return $result ? reset($result) : FALSE;
}