Skip to content
Snippets Groups Projects
Commit 072cd456 authored by Tim Steiner's avatar Tim Steiner
Browse files

[gh-206] Merging from testing into staging

git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x/staging@1081 20a16fea-79d4-4915-8869-1ea9d5ebf173
parent 2868eddc
No related branches found
No related tags found
No related merge requests found
......@@ -1064,12 +1064,15 @@ function unl_block_view_alter(&$data, $block) {
/**
* Tries to implement hook_block_view_MODULE_DELTA_alter, but since the delta contains a -,
* this is actually called from unl_block_view_alter() for now.
* Used to determin if a "sub-menu" should be used instead of the normal menu.
* Used to determine if a "sub-menu" should be used instead of the normal menu.
* @param array $data
* @param stdClass $block
*/
function unl_block_view_system_main_menu_alter(&$data, $block) {
$current_menu_link = _unl_get_current_menu_link();
if (!$current_menu_link) {
return;
}
$submenu = _unl_get_current_submenu($data['content'], $current_menu_link->mlid);
if ($submenu && $submenu['#original_link']['depth'] > 1) {
$data['content'] = $submenu['#below'];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment