You are here

function esi_panels_ctools_plugin_post_alter in ESI: Edge Side Includes 7.3

Implements hook_ctools_plugin_post_alter().

File

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

Code

function esi_panels_ctools_plugin_post_alter(&$plugin, &$info) {

  // Every time the configuration of a panel is saved, the default hook on the
  // panel-context is invoked.  Replace that hook, in order to check for the
  // presence of ESI panes, and switch the rendering pipeline if necessary.
  if ($plugin['name'] == 'panel_context') {

    // @see panels_panel_context_save().
    $plugin['save'] = 'esi_panels__panel_context_save';
  }
}