diff --git a/includes/common.inc b/includes/common.inc index 40a7919..4328c29 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -6775,7 +6775,7 @@ function drupal_common_theme() { 'variables' => array('type' => MARK_NEW), ), 'item_list' => array( - 'variables' => array('items' => array(), 'title' => NULL, 'type' => 'ul', 'attributes' => array()), + 'variables' => array('items' => array(), 'title' => NULL, 'type' => 'ul', 'attributes' => array(), 'nav_tags' => FALSE), ), 'more_help_link' => array( 'variables' => array('url' => NULL), diff --git a/includes/theme.inc b/includes/theme.inc index ee73965..3680b34 100644 --- a/includes/theme.inc +++ b/includes/theme.inc @@ -2084,11 +2084,14 @@ function theme_item_list($variables) { $title = $variables['title']; $type = $variables['type']; $attributes = $variables['attributes']; + $nav_tags = $variables['nav_tags']; + + $tag_type = $nav_tags ? 'div', 'nav'; // Only output the list container and title, if there are any list items. // Check to see whether the block title exists before adding a header. // Empty headers are not semantic and present accessibility challenges. - $output = '