function template_preprocess_responsive_menu_block_wrapper in Responsive and off-canvas menu 7.3
Same name and namespace in other branches
- 7 responsive_menu.module \template_preprocess_responsive_menu_block_wrapper()
- 7.2 responsive_menu.module \template_preprocess_responsive_menu_block_wrapper()
Preprocess variables for responsive-menu-block-wrapper.tpl.php.
See also
responsive-menu-block-wrapper.tpl.php
File
- ./
responsive_menu.module, line 152
Code
function template_preprocess_responsive_menu_block_wrapper(&$variables) {
$variables['classes_array'][] = 'responsive-menu-block';
$variables['classes_array'][] = 'menu-name-' . variable_get('responsive_menu_menu', 'main-menu');
$variables['element_type'] = variable_get('responsive_menu_element', 'nav');
$variables['content']['#attached']['css'] = array(
array(
'data' => '@media screen and ' . variable_get('responsive_menu_media_query', '(min-width: 960px)') . '{ .responsive-menu-block-wrapper.responsive-menu-block { display: block; } #block-responsive-menu-toggle { display: none; } }',
'type' => 'inline',
),
);
}