You are here

function nice_menus_block_info in Nice Menus 7.3

Same name and namespace in other branches
  1. 7.2 nice_menus.module \nice_menus_block_info()

Implements hook_block_info().

File

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

Code

function nice_menus_block_info() {
  $blocks = array();
  for ($i = 1; $i <= variable_get('nice_menus_number', '2'); $i++) {
    $blocks[$i]['info'] = variable_get('nice_menus_name_' . $i, 'Nice menu ' . $i) . ' (Nice menu)';

    // We have too many things changing per user, per page to cache.
    $blocks[$i]['cache'] = DRUPAL_NO_CACHE;
  }
  return $blocks;
}