You are here

function ultimenu_get_blocks in Ultimenu 7

Collects enabled Ultimenu block items.

1 call to ultimenu_get_blocks()
ultimenu_block_info in ./ultimenu.module
Implements hook_block_info().

File

includes/ultimenu.utilities.inc, line 252
Misc functions that hardly change.

Code

function ultimenu_get_blocks() {
  $items =& drupal_static(__FUNCTION__);
  if (!isset($items)) {
    $items = array();
    $menus = ultimenu_get_menus();
    foreach ($menus as $delta => $name) {
      if (ultimenu_blocks_enabled($delta)) {
        $items[$delta] = t("@name", array(
          '@name' => $name,
        ));
      }
    }
  }
  return $items;
}