You are here

function power_menu_block_info in Power Menu 7

Same name and namespace in other branches
  1. 7.2 power_menu.module \power_menu_block_info()

Implements hook_block_info().

File

./power_menu.module, line 672
This module provides some additional menu features. The features are not actually new, but are part of other modules. it's though very cumbersome to creating a new menu item, because one has to go to all the different places to configure these…

Code

function power_menu_block_info() {
  $properties = power_menu_get_all_property_definitions();
  $blocks = array();
  foreach ($properties as $item) {
    if ($item['scope'] == 'block') {
      $blocks[$item['property_name']] = array(
        'info' => 'Power Menu Block: ' . $item['property_name'],
        'cache' => DRUPAL_CACHE_PER_PAGE,
      );
    }
  }
  return $blocks;
}