function responsive_menu_preprocess_block in Responsive and off-canvas menu 7.3
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 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.0.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_menu_preprocess_block().
Removes the contextual links from the toggle icon block.
File
- ./
responsive_menu.module, line 169
Code
function responsive_menu_preprocess_block(&$variables) {
if ($variables['block']->module == 'responsive_menu' && $variables['block']->delta == 'toggle') {
unset($variables['title_suffix']['contextual_links']);
// Get rid of the contextual-links-region class.
if ($key = array_search('contextual-links-region', $variables['classes_array'])) {
unset($variables['classes_array'][$key]);
}
}
}