You are here

function superfish_block_info in Superfish 7

Implements hook_block_info().

File

./superfish.module, line 54
Enables the use of jQuery Superfish plugin for Drupal menus.

Code

function superfish_block_info() {
  $blocks = array();
  $number = variable_get('superfish_number', 4);
  for ($i = 1; $i <= $number; $i++) {
    $blocks[$i] = array(
      'info' => variable_get('superfish_name_' . $i, 'Superfish ' . $i) . ' (Superfish)',
      'cache' => variable_get('superfish_cache_' . $i, DRUPAL_NO_CACHE),
    );
  }
  return $blocks;
}