root / htmltest / sites / all / themes / omega / ohm / template.php @ 5fc58a68
1 | 85ad3d82 | Assos Assos | <?php
|
---|---|---|---|
2 | |||
3 | /**
|
||
4 | * @file
|
||
5 | * Template overrides as well as (pre-)process and alter hooks for the Ohm
|
||
6 | * theme.
|
||
7 | */
|
||
8 | |||
9 | /**
|
||
10 | * Check if a block is a menu block or not.
|
||
11 | *
|
||
12 | * @param stdClass $block
|
||
13 | * A block object.
|
||
14 | *
|
||
15 | * @return bool
|
||
16 | * Given block is a menu block.
|
||
17 | */
|
||
18 | function _ohm_is_menu_block($block) { |
||
19 | $modules = array('menu', 'menu_block'); |
||
20 | if (in_array($block->module, $modules)) { |
||
21 | return TRUE; |
||
22 | } |
||
23 | |||
24 | $modules = array('help', 'powered-by', 'main'); |
||
25 | if ($block->module == 'system' && !in_array($block->delta, $modules)) { |
||
26 | return TRUE; |
||
27 | } |
||
28 | |||
29 | return FALSE; |
||
30 | } |