summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-07-04 08:59:05 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-07-04 08:59:05 +0000
commit59aa2ae8e8a7e29e0029941b28bce5b7ba31ae94 (patch)
tree53b2f31898c20a168d742111ae210aa19393dbbd
parentc21db64ae8f965f28342b6cf528d180a057c6412 (diff)
downloadbrdo-59aa2ae8e8a7e29e0029941b28bce5b7ba31ae94.tar.gz
brdo-59aa2ae8e8a7e29e0029941b28bce5b7ba31ae94.tar.bz2
#71925 by Steven, remove # prefix from link array keys.
-rw-r--r--includes/theme.inc16
-rw-r--r--modules/aggregator.module8
-rw-r--r--modules/aggregator/aggregator.module8
-rw-r--r--modules/blog.module6
-rw-r--r--modules/blog/blog.module6
-rw-r--r--modules/book.module10
-rw-r--r--modules/book/book.module10
-rw-r--r--modules/comment.module58
-rw-r--r--modules/comment/comment.module58
-rw-r--r--modules/forum.module6
-rw-r--r--modules/forum/forum.module6
-rw-r--r--modules/node.module6
-rw-r--r--modules/node/node.module6
-rw-r--r--modules/poll.module4
-rw-r--r--modules/poll/poll.module4
-rw-r--r--modules/statistics.module2
-rw-r--r--modules/statistics/statistics.module2
-rw-r--r--modules/taxonomy.module6
-rw-r--r--modules/taxonomy/taxonomy.module6
-rw-r--r--modules/upload.module8
-rw-r--r--modules/upload/upload.module8
21 files changed, 122 insertions, 122 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index d26bb80fa..53bd126bf 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -497,20 +497,20 @@ function theme_links($links, $delimiter = ' | ') {
if (is_array($links)) {
foreach ($links as $key => $link) {
- //Automatically add a class to each link and convert all _ to - for XHTML compliance
- if (isset($link['#attributes']) && isset($link['#attributes']['class'])) {
- $link['#attributes']['class'] .= ' '. str_replace('_', '-', $key);
+ // Automatically add a class to each link and convert all _ to - for XHTML compliance
+ if (isset($link['attributes']) && isset($link['attributes']['class'])) {
+ $link['attributes']['class'] .= ' '. str_replace('_', '-', $key);
}
else {
- $link['#attributes']['class'] = str_replace('_', '-', $key);
+ $link['attributes']['class'] = str_replace('_', '-', $key);
}
- if ($link['#href']) {
- $output[] = l($link['#title'], $link['#href'], $link['#attributes'], $link['#query'], $link['#fragment']);
+ if ($link['href']) {
+ $output[] = l($link['title'], $link['href'], $link['attributes'], $link['query'], $link['fragment']);
}
- else if ($link['#title']) {
+ else if ($link['title']) {
//Some links are actually not links, but we wrap these in <span> for adding title and class attributes
- $output[] = '<span'. drupal_attributes($link['#attributes']) .'>'. $link['#title'] .'</span>';
+ $output[] = '<span'. drupal_attributes($link['attributes']) .'>'. check_plain($link['title']) .'</span>';
}
}
}
diff --git a/modules/aggregator.module b/modules/aggregator.module
index 3af1bd661..74e138661 100644
--- a/modules/aggregator.module
+++ b/modules/aggregator.module
@@ -1151,8 +1151,8 @@ function aggregator_page_sources() {
$output .= theme('item_list', $list);
$link['sources'] = array(
- '#title' => t('more'),
- '#href' => 'aggregator/sources/'. $feed->fid
+ 'title' => t('more'),
+ 'href' => 'aggregator/sources/'. $feed->fid
);
$output .= '<div class="links">'. theme('links', $link) ."</div>\n";
@@ -1255,8 +1255,8 @@ function aggregator_page_categories() {
}
$link['categories'] = array(
- '#title' => t('more'),
- '#href' => 'aggregator/categories/'. $category->cid
+ 'title' => t('more'),
+ 'href' => 'aggregator/categories/'. $category->cid
);
$output .= '<div class="links">'. theme('links', $link) ."</div>\n";
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module
index 3af1bd661..74e138661 100644
--- a/modules/aggregator/aggregator.module
+++ b/modules/aggregator/aggregator.module
@@ -1151,8 +1151,8 @@ function aggregator_page_sources() {
$output .= theme('item_list', $list);
$link['sources'] = array(
- '#title' => t('more'),
- '#href' => 'aggregator/sources/'. $feed->fid
+ 'title' => t('more'),
+ 'href' => 'aggregator/sources/'. $feed->fid
);
$output .= '<div class="links">'. theme('links', $link) ."</div>\n";
@@ -1255,8 +1255,8 @@ function aggregator_page_categories() {
}
$link['categories'] = array(
- '#title' => t('more'),
- '#href' => 'aggregator/categories/'. $category->cid
+ 'title' => t('more'),
+ 'href' => 'aggregator/categories/'. $category->cid
);
$output .= '<div class="links">'. theme('links', $link) ."</div>\n";
diff --git a/modules/blog.module b/modules/blog.module
index 01c5fa557..13da3d34f 100644
--- a/modules/blog.module
+++ b/modules/blog.module
@@ -250,9 +250,9 @@ function blog_link($type, $node = 0, $main = 0) {
if ($type == 'node' && $node->type == 'blog') {
if (arg(0) != 'blog' || arg(1) != $node->uid) {
$links['blog_usernames_blog'] = array(
- '#title' => t("%username's blog", array('%username' => $node->name)),
- '#href' => "blog/$node->uid",
- '#attributes' => array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name)))
+ 'title' => t("%username's blog", array('%username' => $node->name)),
+ 'href' => "blog/$node->uid",
+ 'attributes' => array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name)))
);
}
}
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index 01c5fa557..13da3d34f 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -250,9 +250,9 @@ function blog_link($type, $node = 0, $main = 0) {
if ($type == 'node' && $node->type == 'blog') {
if (arg(0) != 'blog' || arg(1) != $node->uid) {
$links['blog_usernames_blog'] = array(
- '#title' => t("%username's blog", array('%username' => $node->name)),
- '#href' => "blog/$node->uid",
- '#attributes' => array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name)))
+ 'title' => t("%username's blog", array('%username' => $node->name)),
+ 'href' => "blog/$node->uid",
+ 'attributes' => array('title' => t("Read %username's latest blog entries.", array('%username' => $node->name)))
);
}
}
diff --git a/modules/book.module b/modules/book.module
index 5d58ad5d5..c7f18d872 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -59,15 +59,15 @@ function book_link($type, $node = 0, $main = 0) {
if (!$main) {
if (book_access('create', $node)) {
$links['book_add_child'] = array(
- '#title' => t('add child page'),
- '#href' => "node/add/book/parent/$node->nid"
+ 'title' => t('add child page'),
+ 'href' => "node/add/book/parent/$node->nid"
);
}
if (user_access('see printer-friendly version')) {
$links['book_printer'] = array(
- '#title' => t('printer-friendly version'),
- '#href' => 'book/export/html/'. $node->nid,
- '#attributes' => array('title' => t('Show a printer-friendly version of this book page and its sub-pages.'))
+ 'title' => t('printer-friendly version'),
+ 'href' => 'book/export/html/'. $node->nid,
+ 'attributes' => array('title' => t('Show a printer-friendly version of this book page and its sub-pages.'))
);
}
}
diff --git a/modules/book/book.module b/modules/book/book.module
index 5d58ad5d5..c7f18d872 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -59,15 +59,15 @@ function book_link($type, $node = 0, $main = 0) {
if (!$main) {
if (book_access('create', $node)) {
$links['book_add_child'] = array(
- '#title' => t('add child page'),
- '#href' => "node/add/book/parent/$node->nid"
+ 'title' => t('add child page'),
+ 'href' => "node/add/book/parent/$node->nid"
);
}
if (user_access('see printer-friendly version')) {
$links['book_printer'] = array(
- '#title' => t('printer-friendly version'),
- '#href' => 'book/export/html/'. $node->nid,
- '#attributes' => array('title' => t('Show a printer-friendly version of this book page and its sub-pages.'))
+ 'title' => t('printer-friendly version'),
+ 'href' => 'book/export/html/'. $node->nid,
+ 'attributes' => array('title' => t('Show a printer-friendly version of this book page and its sub-pages.'))
);
}
}
diff --git a/modules/comment.module b/modules/comment.module
index 46dce36ba..0d40b2d9c 100644
--- a/modules/comment.module
+++ b/modules/comment.module
@@ -196,18 +196,18 @@ function comment_link($type, $node = 0, $main = 0) {
if ($all) {
$links['comment_comments'] = array(
- '#title' => format_plural($all, '1 comment', '%count comments'),
- '#href' => "node/$node->nid",
- '#attributes' => array('title' => t('Jump to the first comment of this posting.')),
- '#fragment' => 'comment'
+ 'title' => format_plural($all, '1 comment', '%count comments'),
+ 'href' => "node/$node->nid",
+ 'attributes' => array('title' => t('Jump to the first comment of this posting.')),
+ 'fragment' => 'comment'
);
if ($new) {
$links['comment_new_comments'] = array(
- '#title' => format_plural($new, '1 new comment', '%count new comments'),
- '#href' => "node/$node->nid",
- '#attributes' => array('title' => t('Jump to the first new comment of this posting.')),
- '#fragment' => 'new'
+ 'title' => format_plural($new, '1 new comment', '%count new comments'),
+ 'href' => "node/$node->nid",
+ 'attributes' => array('title' => t('Jump to the first new comment of this posting.')),
+ 'fragment' => 'new'
);
}
}
@@ -215,10 +215,10 @@ function comment_link($type, $node = 0, $main = 0) {
if ($node->comment == COMMENT_NODE_READ_WRITE) {
if (user_access('post comments')) {
$links['comment_add'] = array(
- '#title' => t('add new comment'),
- '#href' => "comment/reply/$node->nid",
- '#attributes' => array('title' => t('Add a new comment to this page.')),
- '#fragment' => 'comment_form'
+ 'title' => t('add new comment'),
+ 'href' => "comment/reply/$node->nid",
+ 'attributes' => array('title' => t('Add a new comment to this page.')),
+ 'fragment' => 'comment_form'
);
}
else {
@@ -236,10 +236,10 @@ function comment_link($type, $node = 0, $main = 0) {
if (user_access('post comments')) {
if (variable_get('comment_form_location', COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) {
$links['comment_add'] = array(
- '#title' => t('add new comment'),
- '#href' => "comment/reply/$node->nid",
- '#attributes' => array('title' => t('Share your thoughts and opinions related to this posting.')),
- '#fragment' => 'comment_form'
+ 'title' => t('add new comment'),
+ 'href' => "comment/reply/$node->nid",
+ 'attributes' => array('title' => t('Share your thoughts and opinions related to this posting.')),
+ 'fragment' => 'comment_form'
);
}
}
@@ -689,37 +689,37 @@ function comment_links($comment, $return = 1) {
// If we are viewing just this comment, we link back to the node.
if ($return) {
$links['comment_parent'] = array(
- '#title' => t('parent'),
- '#href' => comment_node_url(),
- '#fragment' => "comment-$comment->cid"
+ 'title' => t('parent'),
+ 'href' => comment_node_url(),
+ 'fragment' => "comment-$comment->cid"
);
}
if (node_comment_mode($comment->nid) == COMMENT_NODE_READ_WRITE) {
if (user_access('administer comments') && user_access('post comments')) {
$links['comment_delete'] = array(
- '#title' => t('delete'),
- '#href' => "comment/delete/$comment->cid"
+ 'title' => t('delete'),
+ 'href' => "comment/delete/$comment->cid"
);
$links['comment_edit'] = array(
- '#title' => t('edit'),
- '#href' => "comment/edit/$comment->cid"
+ 'title' => t('edit'),
+ 'href' => "comment/edit/$comment->cid"
);
$links['comment_reply'] = array(
- '#title' => t('reply'),
- '#href' => "comment/reply/$comment->nid/$comment->cid"
+ 'title' => t('reply'),
+ 'href' => "comment/reply/$comment->nid/$comment->cid"
);
}
else if (user_access('post comments')) {
if (comment_access('edit', $comment)) {
$links['comment_edit'] = array(
- '#title' => t('edit'),
- '#href' => "comment/edit/$comment->cid"
+ 'title' => t('edit'),
+ 'href' => "comment/edit/$comment->cid"
);
}
$links['comment_reply'] = array(
- '#title' => t('reply'),
- '#href' => "comment/reply/$comment->nid/$comment->cid"
+ 'title' => t('reply'),
+ 'href' => "comment/reply/$comment->nid/$comment->cid"
);
}
else {
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index 46dce36ba..0d40b2d9c 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -196,18 +196,18 @@ function comment_link($type, $node = 0, $main = 0) {
if ($all) {
$links['comment_comments'] = array(
- '#title' => format_plural($all, '1 comment', '%count comments'),
- '#href' => "node/$node->nid",
- '#attributes' => array('title' => t('Jump to the first comment of this posting.')),
- '#fragment' => 'comment'
+ 'title' => format_plural($all, '1 comment', '%count comments'),
+ 'href' => "node/$node->nid",
+ 'attributes' => array('title' => t('Jump to the first comment of this posting.')),
+ 'fragment' => 'comment'
);
if ($new) {
$links['comment_new_comments'] = array(
- '#title' => format_plural($new, '1 new comment', '%count new comments'),
- '#href' => "node/$node->nid",
- '#attributes' => array('title' => t('Jump to the first new comment of this posting.')),
- '#fragment' => 'new'
+ 'title' => format_plural($new, '1 new comment', '%count new comments'),
+ 'href' => "node/$node->nid",
+ 'attributes' => array('title' => t('Jump to the first new comment of this posting.')),
+ 'fragment' => 'new'
);
}
}
@@ -215,10 +215,10 @@ function comment_link($type, $node = 0, $main = 0) {
if ($node->comment == COMMENT_NODE_READ_WRITE) {
if (user_access('post comments')) {
$links['comment_add'] = array(
- '#title' => t('add new comment'),
- '#href' => "comment/reply/$node->nid",
- '#attributes' => array('title' => t('Add a new comment to this page.')),
- '#fragment' => 'comment_form'
+ 'title' => t('add new comment'),
+ 'href' => "comment/reply/$node->nid",
+ 'attributes' => array('title' => t('Add a new comment to this page.')),
+ 'fragment' => 'comment_form'
);
}
else {
@@ -236,10 +236,10 @@ function comment_link($type, $node = 0, $main = 0) {
if (user_access('post comments')) {
if (variable_get('comment_form_location', COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) {
$links['comment_add'] = array(
- '#title' => t('add new comment'),
- '#href' => "comment/reply/$node->nid",
- '#attributes' => array('title' => t('Share your thoughts and opinions related to this posting.')),
- '#fragment' => 'comment_form'
+ 'title' => t('add new comment'),
+ 'href' => "comment/reply/$node->nid",
+ 'attributes' => array('title' => t('Share your thoughts and opinions related to this posting.')),
+ 'fragment' => 'comment_form'
);
}
}
@@ -689,37 +689,37 @@ function comment_links($comment, $return = 1) {
// If we are viewing just this comment, we link back to the node.
if ($return) {
$links['comment_parent'] = array(
- '#title' => t('parent'),
- '#href' => comment_node_url(),
- '#fragment' => "comment-$comment->cid"
+ 'title' => t('parent'),
+ 'href' => comment_node_url(),
+ 'fragment' => "comment-$comment->cid"
);
}
if (node_comment_mode($comment->nid) == COMMENT_NODE_READ_WRITE) {
if (user_access('administer comments') && user_access('post comments')) {
$links['comment_delete'] = array(
- '#title' => t('delete'),
- '#href' => "comment/delete/$comment->cid"
+ 'title' => t('delete'),
+ 'href' => "comment/delete/$comment->cid"
);
$links['comment_edit'] = array(
- '#title' => t('edit'),
- '#href' => "comment/edit/$comment->cid"
+ 'title' => t('edit'),
+ 'href' => "comment/edit/$comment->cid"
);
$links['comment_reply'] = array(
- '#title' => t('reply'),
- '#href' => "comment/reply/$comment->nid/$comment->cid"
+ 'title' => t('reply'),
+ 'href' => "comment/reply/$comment->nid/$comment->cid"
);
}
else if (user_access('post comments')) {
if (comment_access('edit', $comment)) {
$links['comment_edit'] = array(
- '#title' => t('edit'),
- '#href' => "comment/edit/$comment->cid"
+ 'title' => t('edit'),
+ 'href' => "comment/edit/$comment->cid"
);
}
$links['comment_reply'] = array(
- '#title' => t('reply'),
- '#href' => "comment/reply/$comment->nid/$comment->cid"
+ 'title' => t('reply'),
+ 'href' => "comment/reply/$comment->nid/$comment->cid"
);
}
else {
diff --git a/modules/forum.module b/modules/forum.module
index d305b914c..4ba752d73 100644
--- a/modules/forum.module
+++ b/modules/forum.module
@@ -636,14 +636,14 @@ function _forum_parent_select($tid, $title, $child_type) {
}
function forum_link_alter(&$node, &$links) {
- foreach ($links AS $module => $link) {
+ foreach ($links as $module => $link) {
if (strstr($module, 'taxonomy_term')) {
// Link back to the forum and not the taxonomy term page. We'll only
// do this if the taxonomy term in question belongs to forums.
- $tid = str_replace('taxonomy/term/', '', $link['#href']);
+ $tid = str_replace('taxonomy/term/', '', $link['href']);
$term = taxonomy_get_term($tid);
if ($term->vid == _forum_get_vid()) {
- $links[$module]['#href'] = str_replace('taxonomy/term', 'forum', $link['#href']);
+ $links[$module]['href'] = str_replace('taxonomy/term', 'forum', $link['href']);
}
}
}
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index d305b914c..4ba752d73 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -636,14 +636,14 @@ function _forum_parent_select($tid, $title, $child_type) {
}
function forum_link_alter(&$node, &$links) {
- foreach ($links AS $module => $link) {
+ foreach ($links as $module => $link) {
if (strstr($module, 'taxonomy_term')) {
// Link back to the forum and not the taxonomy term page. We'll only
// do this if the taxonomy term in question belongs to forums.
- $tid = str_replace('taxonomy/term/', '', $link['#href']);
+ $tid = str_replace('taxonomy/term/', '', $link['href']);
$term = taxonomy_get_term($tid);
if ($term->vid == _forum_get_vid()) {
- $links[$module]['#href'] = str_replace('taxonomy/term', 'forum', $link['#href']);
+ $links[$module]['href'] = str_replace('taxonomy/term', 'forum', $link['href']);
}
}
}
diff --git a/modules/node.module b/modules/node.module
index 573c1c31b..129659abd 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -816,9 +816,9 @@ function node_link($type, $node = 0, $main = 0) {
if ($main == 1 && $node->teaser && $node->readmore) {
$links['node_read_more'] = array(
- '#title' => t('read more'),
- '#href' => "node/$node->nid",
- '#attributes' => array('title' => t('Read the rest of this posting.'))
+ 'title' => t('read more'),
+ 'href' => "node/$node->nid",
+ 'attributes' => array('title' => t('Read the rest of this posting.'))
);
}
}
diff --git a/modules/node/node.module b/modules/node/node.module
index 573c1c31b..129659abd 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -816,9 +816,9 @@ function node_link($type, $node = 0, $main = 0) {
if ($main == 1 && $node->teaser && $node->readmore) {
$links['node_read_more'] = array(
- '#title' => t('read more'),
- '#href' => "node/$node->nid",
- '#attributes' => array('title' => t('Read the rest of this posting.'))
+ 'title' => t('read more'),
+ 'href' => "node/$node->nid",
+ 'attributes' => array('title' => t('Read the rest of this posting.'))
);
}
}
diff --git a/modules/poll.module b/modules/poll.module
index 0f587280f..9247f2ed0 100644
--- a/modules/poll.module
+++ b/modules/poll.module
@@ -544,9 +544,9 @@ function poll_view(&$node, $teaser = FALSE, $page = FALSE, $block = FALSE) {
$node->body = $node->teaser = '';
$links = module_invoke_all('link', 'node', $node, 1);
- $links[] = array('#title' => t('older polls'), '#href' => 'poll', '#attributes' => array('title' => t('View the list of polls on this site.')));
+ $links[] = array('title' => t('older polls'), 'href' => 'poll', 'attributes' => array('title' => t('View the list of polls on this site.')));
if ($node->allowvotes && $block) {
- $links[] = array('#title' => t('results'), '#href' => 'node/'. $node->nid .'/results', '#attributes' => array('title' => t('View the current poll results.')));
+ $links[] = array('title' => t('results'), 'href' => 'node/'. $node->nid .'/results', 'attributes' => array('title' => t('View the current poll results.')));
}
$node->links = $links;
diff --git a/modules/poll/poll.module b/modules/poll/poll.module
index 0f587280f..9247f2ed0 100644
--- a/modules/poll/poll.module
+++ b/modules/poll/poll.module
@@ -544,9 +544,9 @@ function poll_view(&$node, $teaser = FALSE, $page = FALSE, $block = FALSE) {
$node->body = $node->teaser = '';
$links = module_invoke_all('link', 'node', $node, 1);
- $links[] = array('#title' => t('older polls'), '#href' => 'poll', '#attributes' => array('title' => t('View the list of polls on this site.')));
+ $links[] = array('title' => t('older polls'), 'href' => 'poll', 'attributes' => array('title' => t('View the list of polls on this site.')));
if ($node->allowvotes && $block) {
- $links[] = array('#title' => t('results'), '#href' => 'node/'. $node->nid .'/results', '#attributes' => array('title' => t('View the current poll results.')));
+ $links[] = array('title' => t('results'), 'href' => 'node/'. $node->nid .'/results', 'attributes' => array('title' => t('View the current poll results.')));
}
$node->links = $links;
diff --git a/modules/statistics.module b/modules/statistics.module
index 67dfa7645..522fb60ac 100644
--- a/modules/statistics.module
+++ b/modules/statistics.module
@@ -99,7 +99,7 @@ function statistics_link($type, $node = 0, $main = 0) {
if ($type != 'comment' && user_access('view post access counter')) {
$statistics = statistics_get($node->nid);
if ($statistics) {
- $links['statistics_counter']['#title'] = format_plural($statistics['totalcount'], '1 read', '%count reads');
+ $links['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 read', '%count reads');
}
}
diff --git a/modules/statistics/statistics.module b/modules/statistics/statistics.module
index 67dfa7645..522fb60ac 100644
--- a/modules/statistics/statistics.module
+++ b/modules/statistics/statistics.module
@@ -99,7 +99,7 @@ function statistics_link($type, $node = 0, $main = 0) {
if ($type != 'comment' && user_access('view post access counter')) {
$statistics = statistics_get($node->nid);
if ($statistics) {
- $links['statistics_counter']['#title'] = format_plural($statistics['totalcount'], '1 read', '%count reads');
+ $links['statistics_counter']['title'] = format_plural($statistics['totalcount'], '1 read', '%count reads');
}
}
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index ebcf4dd9c..23349c322 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -30,9 +30,9 @@ function taxonomy_link($type, $node = NULL) {
if (array_key_exists('taxonomy', $node)) {
foreach ($node->taxonomy as $term) {
$links['taxonomy_term_'. $term->tid] = array(
- '#title' => $term->name,
- '#href' => taxonomy_term_path($term),
- '#attributes' => array('rel' => 'tag', 'title' => strip_tags($term->description))
+ 'title' => $term->name,
+ 'href' => taxonomy_term_path($term),
+ 'attributes' => array('rel' => 'tag', 'title' => strip_tags($term->description))
);
}
}
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index ebcf4dd9c..23349c322 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -30,9 +30,9 @@ function taxonomy_link($type, $node = NULL) {
if (array_key_exists('taxonomy', $node)) {
foreach ($node->taxonomy as $term) {
$links['taxonomy_term_'. $term->tid] = array(
- '#title' => $term->name,
- '#href' => taxonomy_term_path($term),
- '#attributes' => array('rel' => 'tag', 'title' => strip_tags($term->description))
+ 'title' => $term->name,
+ 'href' => taxonomy_term_path($term),
+ 'attributes' => array('rel' => 'tag', 'title' => strip_tags($term->description))
);
}
}
diff --git a/modules/upload.module b/modules/upload.module
index f7c6be556..78c1c47b9 100644
--- a/modules/upload.module
+++ b/modules/upload.module
@@ -54,10 +54,10 @@ function upload_link($type, $node = 0, $main = 0) {
}
if ($num_files) {
$links['upload_attachments'] = array(
- '#title' => format_plural($num_files, '1 attachment', '%count attachments'),
- '#href' => "node/$node->nid",
- '#attributes' => array('title' => t('Read full article to view attachments.')),
- '#fragment' => 'attachments'
+ 'title' => format_plural($num_files, '1 attachment', '%count attachments'),
+ 'href' => "node/$node->nid",
+ 'attributes' => array('title' => t('Read full article to view attachments.')),
+ 'fragment' => 'attachments'
);
}
}
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index f7c6be556..78c1c47b9 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -54,10 +54,10 @@ function upload_link($type, $node = 0, $main = 0) {
}
if ($num_files) {
$links['upload_attachments'] = array(
- '#title' => format_plural($num_files, '1 attachment', '%count attachments'),
- '#href' => "node/$node->nid",
- '#attributes' => array('title' => t('Read full article to view attachments.')),
- '#fragment' => 'attachments'
+ 'title' => format_plural($num_files, '1 attachment', '%count attachments'),
+ 'href' => "node/$node->nid",
+ 'attributes' => array('title' => t('Read full article to view attachments.')),
+ 'fragment' => 'attachments'
);
}
}