You are here

function acquia_lift_get_page_context in Acquia Lift Connector 7.3

Gets the page context data.

Return value

An array of page context data.

3 calls to acquia_lift_get_page_context()
acquia_lift_ctools_render_alter in ./acquia_lift.module
Implements hook_ctools_render_alter().
acquia_lift_node_view in ./acquia_lift.module
Implements hook_node_view().
acquia_lift_page_build in ./acquia_lift.module
Implements hook_page_build().

File

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

Code

function acquia_lift_get_page_context($node = NULL, $primary = FALSE) {

  // Add any page context
  module_load_include('inc', 'acquia_lift', 'acquia_lift.context');
  $page_context = _acquia_lift_get_page_context($node, $primary);
  if (!isset($page_context['content_title']) && is_null($node)) {
    $page_context['content_title'] = drupal_get_title();
  }

  // Allow other modules to alter the page context to include additional data.
  drupal_alter('acquia_lift_page_context', $page_context);
  return $page_context;
}