You are here

function nice_menus_requirements in Nice Menus 7.3

Implements hook_requirements().

File

./nice_menus.module, line 31
Module to enable CSS dropdown and flyout menus.

Code

function nice_menus_requirements($phase) {
  $requirements = array();
  $jquery = drupal_get_library('system', 'jquery');
  if (version_compare($jquery['version'], '1.8', '<')) {
    $requirements['nice_menus'] = array(
      'title' => t('Nice menus'),
      'value' => 'jQuery >=1.8',
      'severity' => REQUIREMENT_ERROR,
    );
  }
  return $requirements;
}