You are here

function expire_panels_execute_expiration in Panels Cache Expiration 7

Execute expiration method for object.

3 calls to expire_panels_execute_expiration()
expire_panels_entity_update in ./expire_panels.module
Implements hook_entity_update().
expire_panels_panels_delete_display in ./expire_panels.module
Implements hook_panels_delete_display().
expire_panels_panels_display_save in ./expire_panels.module
Implements hook_panels_display_save().

File

./expire_panels.module, line 45

Code

function expire_panels_execute_expiration($type, $object, $action) {
  $status = variable_get('expire_status', EXPIRE_STATUS_DISABLED);
  if ($status) {
    if ($handler = _expire_get_expiration_handler($type)) {
      $handler
        ->expire($object, $action);
    }
  }
  return FALSE;
}