You are here

function smartmenus_block_info in Smartmenus.js 7

Implements hook_block_info().

File

./smartmenus.module, line 68
Integration with the Smartmenus jQuery plugin for responsive menus.

Code

function smartmenus_block_info() {

  // Generate no. of blocks.
  foreach (range(1, variable_get('smartmenus_block_count', 1)) as $delta) {
    $blocks['smartmenus_' . $delta] = array(
      'info' => t('Responsive drop-down Smartmenu #!delta', array(
        '!delta' => $delta,
      )),
      'cache' => DRUPAL_CACHE_PER_ROLE,
    );
  }
  return $blocks;
}