You are here

function acquia_lift_page_build in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7.3 acquia_lift.module \acquia_lift_page_build()
  2. 7 acquia_lift.module \acquia_lift_page_build()

Implements hook_page_build().

File

./acquia_lift.module, line 360
acquia_lift.module Provides Acquia Lift-specific personalization functionality.

Code

function acquia_lift_page_build(&$page) {
  $page['page_top']['#attached']['library'][] = array(
    'acquia_lift',
    'acquia_lift.page',
  );
  if (user_access('manage personalized content')) {
    module_load_include('inc', 'acquia_lift', 'acquia_lift.ui');
    acquia_lift_build_page($page);
  }
  if (!path_is_admin(current_path()) && acquia_lift_debug_mode_enabled()) {
    $page['footer']['acquia_lift_debug'] = array(
      '#attached' => array(
        'library' => array(
          array(
            'acquia_lift',
            'debugger',
          ),
        ),
      ),
      'container' => array(
        '#markup' => theme('acquia_lift_debugger'),
      ),
    );
  }
}