You are here

function theme_ultimenu_region in Ultimenu 7

HTML for a generic Ultimenu region wrapper.

Parameters

array $variables: An associative array containing:

  • element: A render element containing the properties of the ultimenu region element, #config, #region and #children.

File

templates/ultimenu.theme.inc, line 45
Hooks and preprocess functions for the Ultimenu module.

Code

function theme_ultimenu_region($variables) {
  extract($variables);
  $attributes = array();
  $attributes['class'][] = 'ultimenu-flyout';
  $attributes['class'][] = drupal_html_class($element['#region']);
  $attributes['class'][] = 'clearfix';

  // HTML5 section contains Ultimenu region and its blocks.
  $output = '<section ' . drupal_attributes($attributes) . '>';
  $output .= $element['#children'];
  $output .= '</section>';
  return $output;
}