function power_menu_block_view in Power Menu 7
Same name and namespace in other branches
- 7.2 power_menu.module \power_menu_block_view()
Implements hook_block_view().
File
- ./
power_menu.module, line 690 - 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_view($delta) {
$properties = power_menu_get_all_property_definitions();
if (!empty($properties)) {
include_once DRUPAL_ROOT . '/' . $properties[$delta]['path'] . '/' . $properties[$delta]['file'];
$block = array(
'content' => $properties[$delta]['property_load']($mlid),
'subject' => $properties[$delta]['title'],
);
return $block;
}
}