From 8043cb998f3325731bfab8d82251fa49639aec1d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 20 Apr 2002 11:52:50 +0000 Subject: - Applied Marco's big patch, including contributions from Moshe: + Changed the db_query() API. + Wrapped all links in l(), lm(), la(), ..., drupal_url() functions. + XHTML-ified some HTML. + Wrapped a lot of text in the administrative pages in a t() function. + Replaced all $REQUEST_URI/$PATH_INFOs by request_uri(). + Small bugfixes (eg. bug in book_export_html() and clean-ups (eg. RSS code). + Fixed some bugs in the taxonomy module (eg. tree making bug), added new functionality (eg. new APIs for use by other modules), included Moshe's taxonomy extensions, and some documentation udpates. + ... --- modules/queue.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/queue.module') diff --git a/modules/queue.module b/modules/queue.module index 81cbcd562..00de652d3 100644 --- a/modules/queue.module +++ b/modules/queue.module @@ -21,7 +21,7 @@ function queue_perm() { function queue_link($type) { if ($type == "menu.view" && user_access("access submission queue")) { - $links[] = "". t("view submissions") ." (". queue_count() .")"; + $links[] = la(t("view submissions"), array("mod" => "queue"), t("Moderate the content in the submission queue."))." (". queue_count() .")"; } return $links ? $links : array(); @@ -84,10 +84,10 @@ function queue_overview() { $output .= " ". t("Subject") ."". t("Author") ."". t("Type") ."". t("Score") .""; while ($node = db_fetch_object($result)) { if ($user->uid == $node->uid || field_get($node->users, $user->uid)) { - $output .= " nid\">". check_output($node->title) ."". format_name($node) ."". module_invoke($node->type, "node", "name") ."". queue_score($node->nid) .""; + $output .= " ".la(check_output($node->title), array("mod" => "queue", "op" => "view", "id" => $node->nid))."". format_name($node) ."". module_invoke($node->type, "node", "name") ."". queue_score($node->nid) .""; } else { - $output .= " nid\">". check_output($node->title) ."". format_name($node) ."". module_invoke($node->type, "node", "name") ."nid\">". t("vote") .""; + $output .= " ".lm(check_output($node->title), array("mod" => "queue", "op" => "view", "id" => $node->nid))."". format_name($node) ."". module_invoke($node->type, "node", "name") ."".lm(t("vote"), array("mod" => "queue", "op" => "view", "id" => $node->nid)).""; } if ($node->teaser) { -- cgit v1.2.3