You are here

function _acquia_lift_using_unified_navbar in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 acquia_lift.module \_acquia_lift_using_unified_navbar()

Helper function to determine if the site is using the Acquia Lift unified navigation bar.

Return value

bool True if using a module that is supported by the unified navigation bar.

5 calls to _acquia_lift_using_unified_navbar()
acquia_lift_js_alter in ./acquia_lift.module
Implements hook_js_alter().
acquia_lift_library_alter in ./acquia_lift.module
Implements hook_library_alter().
acquia_lift_navbar in ./acquia_lift.module
Implements hook_navbar().
acquia_lift_system_info_alter in ./acquia_lift.module
Implements hook_system_info_alter().
_acquia_lift_navigation_attach_assets in ./acquia_lift.module
Create and attach the assets for Acquia Lift navigation to an element on the page.

File

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

Code

function _acquia_lift_using_unified_navbar() {
  $supported_modules = array(
    'admin_menu',
    'toolbar',
  );
  foreach ($supported_modules as $module_name) {
    if (module_exists($module_name)) {
      return TRUE;
    }
  }
}