You are here

function _menu_block_block_info in Menu Block 7.3

Same name and namespace in other branches
  1. 7.2 menu_block.admin.inc \_menu_block_block_info()

Implements hook_block_info().

1 call to _menu_block_block_info()
menu_block_block_info in ./menu_block.module

File

./menu_block.admin.inc, line 133
Provides infrequently used functions and hooks for menu_block.

Code

function _menu_block_block_info() {
  $blocks = array();
  $deltas = variable_get('menu_block_ids', array());
  $exported = menu_block_get_exported_blocks();
  $deltas = array_unique(array_merge($deltas, array_keys($exported)));
  foreach ($deltas as $delta) {
    $blocks[$delta]['info'] = _menu_block_format_title(menu_block_get_config($delta));

    // Menu blocks can't be cached because each menu item can have
    // a custom access callback. menu.inc manages its own caching.
    $blocks[$delta]['cache'] = DRUPAL_NO_CACHE;
  }
  return $blocks;
}