You are here

function ultimenu_preprocess_region in Ultimenu 8

Implements hook_preprocess_region().

File

./ultimenu.module, line 110
Build Ultimenu blocks based on menu, and their regions on enabled menu items.

Code

function ultimenu_preprocess_region(&$variables) {
  if (strpos($variables['region'], 'ultimenu_') !== FALSE) {
    $variables['attributes']['class'][] = 'ultimenu__region';
  }
}