system_preprocess_block
function system_preprocess_block
system_preprocess_block(&$variables)
Implements hook_preprocess_block().
File
- modules/system/system.module, line 2110
- Configuration system that lets administrators modify the workings of the site.
Code
function system_preprocess_block(&$variables) { // System menu blocks should get the same class as menu module blocks. if ($variables['block']->module == 'system' && in_array($variables['block']->delta, array_keys(menu_list_system_menus()))) { $variables['classes_array'][] = 'block-menu'; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!system.module/function/system_preprocess_block/7.x