You are here

function esi_panels__panelizer_export_save_callback in ESI: Edge Side Includes 7.3

Save the configuration of a panelizer panel page.

See also

panelizer_export_save_callback().

1 string reference to 'esi_panels__panelizer_export_save_callback'
esi_panels_schema_alter in modules/esi_panels/esi_panels.install
Implements hook_schema_alter().

File

modules/esi_panels/esi_panels.module, line 326
ESI handler for panel panes.

Code

function esi_panels__panelizer_export_save_callback(&$object) {

  // Check if the handler has any panes using ESI as a cache.
  $display = $object->display;
  if (_esi_panels__display_uses_esi($display)) {
    $pipeline = $object->pipeline;
    if ($pipeline == 'standard' || $pipeline == 'ipe') {
      $object->extra['original_pipeline'] = $pipeline;
      $object->pipeline = 'esi';
    }
  }
  return panelizer_export_save_callback($object);
}