You are here

function acquia_lift_ctools_render_alter in Acquia Lift Connector 7.3

Implements hook_ctools_render_alter().

This provides support for panelizer nodes, which don't fire hook_view_alter.

File

./acquia_lift.module, line 175
acquia_lift.module Provides Acquia Lift Profiles integration.

Code

function acquia_lift_ctools_render_alter(&$info, &$page, &$context) {
  $task = $context['task'];
  if ($page && $task['module'] == 'page_manager' && $task['name'] == 'node_view' && !empty($context['args'])) {
    $nid = $context['args'][0];
    if (isset($context['contexts']['argument_entity_id:node_1']) && $context['contexts']['argument_entity_id:node_1']->argument == $nid) {
      $node = $context['contexts']['argument_entity_id:node_1']->data;
      acquia_lift_get_page_context($node, TRUE);
    }
  }
}