diff --git a/includes/common.inc b/includes/common.inc
index 4ec37dc..24cb09a 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -6410,7 +6410,7 @@ function drupal_common_theme() {
       'variables' => array('text' => NULL, 'path' => NULL, 'options' => array()),
     ),
     'links' => array(
-      'variables' => array('links' => NULL, 'attributes' => array('class' => array('links')), 'heading' => array()),
+      'variables' => array('links' => NULL, 'list' => 'ul', 'attributes' => array('class' => array('links')), 'heading' => array()),
     ),
     'image' => array(
       // HTML 4 and XHTML 1.0 always require an alt attribute. The HTML 5 draft
diff --git a/includes/theme.inc b/includes/theme.inc
index c211248..26573c1 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -1412,6 +1412,7 @@ function theme_links($variables) {
   $links = $variables['links'];
   $attributes = $variables['attributes'];
   $heading = $variables['heading'];
+  $list = $variables['list'];
   global $language_url;
   $output = '';
 
@@ -1437,7 +1438,7 @@ function theme_links($variables) {
       $output .= '>' . check_plain($heading['text']) . '</' . $heading['level'] . '>';
     }
 
-    $output .= '<ul' . drupal_attributes($attributes) . '>';
+    $output .= '<' . $list . drupal_attributes($attributes) . '>';
 
     $num_links = count($links);
     $i = 1;
@@ -1478,7 +1479,7 @@ function theme_links($variables) {
       $output .= "</li>\n";
     }
 
-    $output .= '</ul>';
+    $output .= '</' . $list . '>';
   }
 
   return $output;

