function responsive_menu_preprocess_block in Responsive and off-canvas menu 4.0.x
Same name and namespace in other branches
- 8.3 responsive_menu.module \responsive_menu_preprocess_block()
- 8.2 responsive_menu.module \responsive_menu_preprocess_block()
- 7.3 responsive_menu.module \responsive_menu_preprocess_block()
- 7 responsive_menu.module \responsive_menu_preprocess_block()
- 7.2 responsive_menu.module \responsive_menu_preprocess_block()
- 4.4.x responsive_menu.module \responsive_menu_preprocess_block()
- 4.1.x responsive_menu.module \responsive_menu_preprocess_block()
- 4.3.x responsive_menu.module \responsive_menu_preprocess_block()
Implements hook_preprocess_block().
Removes the contextual links from the toggle icon block.
File
- ./
responsive_menu.module, line 74 - Contains procedural code.
Code
function responsive_menu_preprocess_block(&$variables) {
if ($variables['plugin_id'] == 'responsive_menu_toggle') {
$variables['attributes']['class'][] = 'responsive-menu-toggle-wrapper';
$variables['attributes']['class'][] = 'responsive-menu-toggle';
// Remove the contextual links from this block.
unset($variables['title_suffix']['contextual_links']);
}
}