? .bzr
? files
? generate-taxonomy.php
? structured_links.patch
? structured_links_1.patch
? structured_links_2.patch
? upload.patch
? database/database.prefixed.mysql
? modules/formupdater
? modules/tagadelic
? modules/themedev
? sites/webschuur.dyndns.org
Index: includes/theme.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/theme.inc,v
retrieving revision 1.272
diff -u -F^f -r1.272 theme.inc
--- includes/theme.inc	6 Jan 2006 07:32:54 -0000	1.272
+++ includes/theme.inc	10 Jan 2006 17:54:17 -0000
@@ -466,17 +466,26 @@ function theme_status_messages() {
  * Return a themed set of links.
  *
  * @param $links
- *   An array of links to be themed.
+ *   A keyed array of link objects.
  * @param $delimiter
  *   A string used to separate the links.
  * @return
  *   A string containing the themed links.
  */
 function theme_links($links, $delimiter = ' | ') {
-  if (!is_array($links)) {
-    return '';
+  $output = array();
+  if (is_array($links)) {
+    foreach ($links as $link) {
+      if ($link->href) {
+        $output[] = l($link->title, $link->href, $link->attributes, $link->query, $link->fragment);
+      }
+      elseif ($link->title) {
+        //Some links are actually not links ...
+        $output[] = $link->title;
+      }
+    }
   }
-  return implode($delimiter, $links);
+  return implode($delimiter, $output);
 }
 
 /**
Index: modules/blog.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/blog.module,v
retrieving revision 1.239
diff -u -F^f -r1.239 blog.module
--- modules/blog.module	29 Dec 2005 04:46:40 -0000	1.239
+++ modules/blog.module	10 Jan 2006 17:54:18 -0000
@@ -256,7 +256,9 @@ function blog_link($type, $node = 0, $ma
 
   if ($type == 'node' && $node->type == 'blog') {
     if (arg(0) != 'blog' || arg(1) != $node->uid) {
-      $links[] = l(t("%username's blog", array('%username' => $node->name)), "blog/$node->uid", array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name))));
+      $links['blog_usernames_blog']->title = t("%username's blog", array('%username' => $node->name));
+      $links['blog_usernames_blog']->href = "blog/$node->uid";
+      $links['blog_usernames_blog']->attributes = array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name)));
     }
   }
 
Index: modules/book.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/book.module,v
retrieving revision 1.339
diff -u -F^f -r1.339 book.module
--- modules/book.module	31 Dec 2005 13:04:40 -0000	1.339
+++ modules/book.module	10 Jan 2006 17:54:19 -0000
@@ -58,12 +58,13 @@ function book_link($type, $node = 0, $ma
   if ($type == 'node' && isset($node->parent)) {
     if (!$main) {
       if (book_access('create', $node)) {
-        $links[] = l(t('add child page'), "node/add/book/parent/$node->nid");
+        $links['book_add_child']->title = t('add child page');
+        $links['book_add_child']->href = "node/add/book/parent/$node->nid";
       }
       if (user_access('see printer-friendly version')) {
-        $links[] = l(t('printer-friendly version'),
-                     'book/export/html/'. $node->nid,
-                     array('title' => t('Show a printer-friendly version of this book page and its sub-pages.')));
+        $links['book_export_html']->title = t('printer-friendly version');
+        $links['book_export_html']->href = "book/export/html/$node->nid";
+        $links['book_export_html']->attributes = array('title' => t('Show a printer-friendly version of this book page and its sub-pages.'));
       }
     }
   }
Index: modules/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment.module,v
retrieving revision 1.414
diff -u -F^f -r1.414 comment.module
--- modules/comment.module	8 Jan 2006 00:29:37 -0000	1.414
+++ modules/comment.module	10 Jan 2006 17:54:21 -0000
@@ -191,19 +191,27 @@ function comment_link($type, $node = 0, 
         $new = comment_num_new($node->nid);
 
         if ($all) {
-          $links[] = l(format_plural($all, '1 comment', '%count comments'), "node/$node->nid", array('title' => t('Jump to the first comment of this posting.')), NULL, 'comment');
+          $links['comment_comments']->title = format_plural($all, '1 comment', '%count comments');
+          $links['comment_comments']->href = "node/$node->nid";
+          $links['comment_comments']->attributes = array('title' => t('Jump to the first comment of this posting.'));
+          $links['comment_comments']->fragment = 'comment';
 
           if ($new) {
-            $links[] = l(format_plural($new, '1 new comment', '%count new comments'), "node/$node->nid", array('title' => t('Jump to the first new comment of this posting.')), NULL, 'new');
+            $links['comment_comments_new']->title = format_plural($new, '1 new comment', '%count new comments');
+            $links['comment_comments_new']->href = "node/$node->nid";
+            $links['comment_comments_new']->attributes = array('title' => t('Jump to the first new comment of this posting.'));
+            $links['comment_comments_new']->fragment = 'new';
           }
         }
         else {
           if ($node->comment == COMMENT_NODE_READ_WRITE) {
             if (user_access('post comments')) {
-              $links[] = l(t('add new comment'), "comment/reply/$node->nid", array('title' => t('Add a new comment to this page.')));
+              $links['comment_add']->title = t('add new comment');
+              $links['comment_add']->href = "comment/reply/$node->nid";
+              $links['comment_add']->attributes = array('title' => t('Add a new comment to this page.'));
             }
             else {
-              $links[] = theme('comment_post_forbidden');
+              $links['comment_post_forbidden']->title = theme('comment_post_forbidden');
             }
           }
         }
@@ -215,10 +223,13 @@ function comment_link($type, $node = 0, 
 
       if ($node->comment == COMMENT_NODE_READ_WRITE && variable_get('comment_form_location', COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) {
         if (user_access('post comments')) {
-          $links[] = l(t('add new comment'), "comment/reply/$node->nid", array('title' => t('Share your thoughts and opinions related to this posting.')), NULL, 'comment');
+          $links['comment_add']->title = t('add new comment');
+          $links['comment_add']->href = "comment/reply/$node->nid";
+          $links['comment_add']->attributes = array('title' => t('Share your thoughts and opinions related to this posting.'));
+          $links['comment_add']->fragment = 'comment';
         }
         else {
-          $links[] = theme('comment_post_forbidden');
+          $links['comment_post_forbidden'] = theme('comment_post_forbidden');
         }
       }
     }
@@ -771,23 +782,30 @@ function comment_links($comment, $return
 
   // If we are viewing just this comment, we link back to the node.
   if ($return) {
-    $links[] = l(t('parent'), comment_node_url(), NULL, NULL, "comment-$comment->cid");
+    $links['comment_parent']->title = t('parent');
+    $links['comment_parent']->href = comment_node_url();
+    $links['comment_parent']->fragment = "comment-$comment->cid";
   }
 
   if (node_comment_mode($comment->nid) == COMMENT_NODE_READ_WRITE) {
     if (user_access('administer comments') && user_access('post comments')) {
-      $links[] = l(t('delete'), "comment/delete/$comment->cid");
-      $links[] = l(t('edit'), "comment/edit/$comment->cid");
-      $links[] = l(t('reply'), "comment/reply/$comment->nid/$comment->cid");
+      $links['comment_delete']->title = t('delete');
+      $links['comment_delete']->href = "comment/delete/$comment->cid";
+      $links['comment_edit']->title = t('edit');
+      $links['comment_edit']->href = "comment/edit/$comment->cid";
+      $links['comment_reply']->title = t('reply');
+      $links['comment_reply']->href = "comment/reply/$comment->nid/$comment->cid";
     }
     else if (user_access('post comments')) {
       if (comment_access('edit', $comment)) {
-        $links[] = l(t('edit'), "comment/edit/$comment->cid");
+        $links['comment_edit']->title = t('edit');
+        $links['comment_edit']->href = "comment/edit/$comment->cid";
       }
-      $links[] = l(t('reply'), "comment/reply/$comment->nid/$comment->cid");
+      $links['comment_reply']->title = t('reply');
+      $links['comment_reply']->href = "comment/reply/$comment->cid";
     }
     else {
-      $links[] = theme('comment_post_forbidden');
+      $links['comment_post_forbidden'] = theme('comment_post_forbidden');
     }
   }
 
Index: modules/forum.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/forum.module,v
retrieving revision 1.301
diff -u -F^f -r1.301 forum.module
--- modules/forum.module	10 Jan 2006 12:35:20 -0000	1.301
+++ modules/forum.module	10 Jan 2006 17:54:22 -0000
@@ -433,11 +433,15 @@ function forum_link($type, $node = 0, $m
     }
 
     if ($prev) {
-      $links[] = l(t('previous forum topic'), "node/$prev->nid", array('title' => check_plain($prev->title)));
+      $links['forum_previous_topic']->title = t('previous forum topic');
+      $links['forum_previous_topic']->href = "node/$prev->nid";
+      $links['forum_previous_topic']->attributes = array('title' => check_plain($prev->title));
     }
 
     if ($next) {
-      $links[] = l(t('next forum topic'), "node/$next->nid", array('title' => check_plain($next->title)));
+      $links['forum_next_topic']->title = t('next forum topic');
+      $links['forum_next_topic']->href = "node/$next->nid";
+      $links['forum_next_topic']->attributes = array('title' => check_plain($next->title));
     }
   }
 
Index: modules/node.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/node.module,v
retrieving revision 1.581
diff -u -F^f -r1.581 node.module
--- modules/node.module	8 Jan 2006 12:49:51 -0000	1.581
+++ modules/node.module	10 Jan 2006 17:54:24 -0000
@@ -845,7 +845,9 @@ function node_link($type, $node = 0, $ma
     }
 
     if ($main == 1 && $node->teaser && $node->readmore) {
-      $links[] = l(t('read more'), "node/$node->nid", array('title' => t('Read the rest of this posting.'), 'class' => 'read-more'));
+      $links['node_read_more']->title = t('read more');
+      $links['node_read_more']->href = "node/$node->nid";
+      $links['node_read_more']->attributes = array('title' => t('Read the rest of this posting.'), 'class' => 'read-more');
     }
   }
 
Index: modules/statistics.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/statistics.module,v
retrieving revision 1.214
diff -u -F^f -r1.214 statistics.module
--- modules/statistics.module	7 Jan 2006 10:12:32 -0000	1.214
+++ modules/statistics.module	10 Jan 2006 17:54:24 -0000
@@ -97,7 +97,7 @@ function statistics_link($type, $node = 
   if ($type != 'comment' && user_access('view post access counter')) {
     $statistics = statistics_get($node->nid);
     if ($statistics) {
-      $links[] = format_plural($statistics['totalcount'], '1 read', '%count reads');
+      $links['statistics_counter']->title = format_plural($statistics['totalcount'], '1 read', '%count reads');
     }
   }
 
Index: modules/taxonomy.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/taxonomy.module,v
retrieving revision 1.251
diff -u -F^f -r1.251 taxonomy.module
--- modules/taxonomy.module	10 Jan 2006 12:35:20 -0000	1.251
+++ modules/taxonomy.module	10 Jan 2006 17:54:26 -0000
@@ -29,7 +29,8 @@ function taxonomy_link($type, $node = NU
     $links = array();
     if (array_key_exists('taxonomy', $node)) {
       foreach ($node->taxonomy as $term) {
-        $links[] = l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => $term->description));
+        $links['taxonomy_term_'. $tid]->title = $term->name;
+        $links['taxonomy_term_'. $tid]->href = taxonomy_term_path($term);
       }
     }
     return $links;
Index: modules/upload.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/upload.module,v
retrieving revision 1.72
diff -u -F^f -r1.72 upload.module
--- modules/upload.module	8 Jan 2006 12:20:55 -0000	1.72
+++ modules/upload.module	10 Jan 2006 17:54:26 -0000
@@ -52,7 +52,10 @@ function upload_link($type, $node = 0, $
       }
     }
     if ($num_files) {
-      $links[] = l(format_plural($num_files, '1 attachment', '%count attachments'), "node/$node->nid", array('title' => t('Read full article to view attachments.')), NULL, 'attachments');
+      $links['upload_attachments']->title = format_plural($num_files, '1 attachment', '%count attachments');
+      $links['upload_attachments']->href = "node/$node->nid";
+      $links['upload_attachments']->attributes = array('title' => t('Read full article to view attachments.'));
+      $links['upload_attachments']->fragment = 'attachments';
     }
   }
 
