You are here

function _ds_extras_cache_clear in Display Suite 7

Clears the entity display from cache_ds_panels bin.

Parameters

$entity: The full entity object.

$type: The name of the $entity.

2 calls to _ds_extras_cache_clear()
ds_extras_entity_delete in modules/ds_extras/ds_extras.module
Implements hook_entity_delete().
ds_extras_entity_update in modules/ds_extras/ds_extras.module
Implements hook_entity_update().

File

modules/ds_extras/ds_extras.module, line 1088
Display Suite extras main functions.

Code

function _ds_extras_cache_clear($entity, $type) {
  $info = entity_extract_ids($type, $entity);
  $cid = $type . ':' . $info[0];
  cache_clear_all($cid, 'cache_ds_panels', TRUE);
}