function template_preprocess_menu_block_wrapper in Menu Block 6.2
Same name and namespace in other branches
- 7.3 menu_block.module \template_preprocess_menu_block_wrapper()
- 7.2 menu_block.module \template_preprocess_menu_block_wrapper()
Process variables for menu-block-wrapper.tpl.php.
See also
File
- ./
menu_block.module, line 102 - Provides configurable blocks of menu items.
Code
function template_preprocess_menu_block_wrapper(&$variables) {
$variables['classes_array'][] = 'menu-block-' . $variables['delta'];
$variables['classes_array'][] = 'menu-name-' . $variables['settings']['menu_name'];
$variables['classes_array'][] = 'parent-mlid-' . $variables['settings']['parent_mlid'];
$variables['classes_array'][] = 'menu-level-' . $variables['settings']['level'];
$variables['classes'] = check_plain(implode(' ', $variables['classes_array']));
$variables['template_files'][] = 'menu-block-wrapper-' . $variables['settings']['menu_name'];
}