You are here

function acquia_lift_using_older_navbar in Acquia Lift Connector 7.2

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

Helper function to determine if an older version of navbar is in use.

The main difference to be dealt with here is that in navbar <= 1.5 the main menu class used is 'menu' while later versions standardized to 'navbar-menu' to avoid conflicts with the standard menu system.

2 calls to acquia_lift_using_older_navbar()
acquia_lift_library in ./acquia_lift.module
Implements hook_library().
acquia_lift_unibar_menu_class in ./acquia_lift.module
Helper function to determine the menu class name to use for unibar structure.

File

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

Code

function acquia_lift_using_older_navbar() {

  // The menu tree preprocessor was added after navbar 1.5 in order to handle applying
  // the updated navbar-menu class.
  return module_exists('navbar') && !function_exists('template_preprocess_navbar_menu_tree');
}