You are here

function fieldable_panels_panes_load in Fieldable Panels Panes (FPP) 7

Panel pane entity loader.

See also

entity_load()

18 calls to fieldable_panels_panes_load()
fieldable_panels_panes_block_view in ./fieldable_panels_panes.module
Implements hook_block_view().
fieldable_panels_panes_ctools_access_get in ./fieldable_panels_panes.module
Implement CTools access form caching callback: get.
fieldable_panels_panes_delete_revision in ./fieldable_panels_panes.module
Delete a revision for a fieldable panel pane.
fieldable_panels_panes_handler_field_is_current::pre_render in plugins/views/fieldable_panels_panes_handler_field_is_current.inc
Run before any fields are rendered.
fieldable_panels_panes_handler_field_view_revision::pre_render in plugins/views/fieldable_panels_panes_handler_field_view_revision.inc
Run before any fields are rendered.

... See full list

File

./fieldable_panels_panes.module, line 968
Maintains an entity that appears as panel pane content.

Code

function fieldable_panels_panes_load($fpid, $vid = NULL) {
  if (!is_numeric($fpid)) {
    return FALSE;
  }
  $conditions = isset($vid) ? array(
    'vid' => $vid,
  ) : array();
  $entities = fieldable_panels_panes_load_multiple(array(
    $fpid,
  ), $conditions);
  return !empty($entities) ? reset($entities) : FALSE;
}