You are here

function cdn_ctools_render_alter in CDN 7.2

Implements hook_ctools_render_alter().

File

./cdn.module, line 449

Code

function cdn_ctools_render_alter(&$info, $page, $context) {
  if (!cdn_status_is_enabled()) {
    return;
  }

  // Nodes in Panel panes.
  if ($context['task']['name'] === 'node_view' && !empty($info['content']) && is_string($info['content'])) {
    $info['content'] = cdn_post_render_html_alter($info['content']);
  }
}