function acquia_lift_profiles_get_page_context in Acquia Lift Connector 7.2
Same name and namespace in other branches
- 7 acquia_lift_profiles/acquia_lift_profiles.module \acquia_lift_profiles_get_page_context()
Gets the page context data.
Return value
An array of page context data.
1 call to acquia_lift_profiles_get_page_context()
- acquia_lift_profiles_page_build in acquia_lift_profiles/
acquia_lift_profiles.module - Implements hook_page_build().
File
- acquia_lift_profiles/
acquia_lift_profiles.module, line 560 - acquia_lift_profiles.module Provides Acquia Lift Profiles integration.
Code
function acquia_lift_profiles_get_page_context() {
// Add node-specific page context
$page_context = acquia_lift_profiles_node_page_context();
if (!isset($page_context['content_title'])) {
$page_context['content_title'] = drupal_get_title();
}
// Allow other modules to alter the page context to include additional data.
drupal_alter('acquia_lift_profiles_page_context', $page_context);
return $page_context;
}