You are here

function panopoly_widgets_ctools_plugin_post_alter in Panopoly Widgets 7

Implements hook_ctools_plugin_post_alter().

File

./panopoly_widgets.module, line 165

Code

function panopoly_widgets_ctools_plugin_post_alter(&$plugin, &$info) {
  if ($info['module'] == 'ctools' && $info['type'] == 'content_types' && $plugin['module'] == 'fieldable_panels_panes' && $plugin['name'] == 'fieldable_panels_pane') {
    $plugin['original render callback'] = $plugin['render callback'];
    $plugin['render callback'] = 'panopoly_widgets_fieldable_panels_pane_render';
  }
}