You are here

function fieldable_panels_panes_entity_insert in Fieldable Panels Panes (FPP) 7

Implements hook_entity_insert().

File

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

Code

function fieldable_panels_panes_entity_insert($entity, $type) {
  if ($type == 'fieldable_panels_pane') {
    $cid = "fieldable_panels_panes_{$entity->bundle}_content_type";
    cache_clear_all($cid, 'cache_panels');
  }
}