summaryrefslogtreecommitdiff
path: root/modules/blogapi.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-05-31 21:14:27 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-05-31 21:14:27 +0000
commita597354bcb48536f2c7633d53c78fa931b186c20 (patch)
tree34e16a5b178faf3047963cddfdec084bfeceb8cb /modules/blogapi.module
parent025bca28aa1717459c811744704e0c1b514d1e1e (diff)
downloadbrdo-a597354bcb48536f2c7633d53c78fa931b186c20.tar.gz
brdo-a597354bcb48536f2c7633d53c78fa931b186c20.tar.bz2
- Code cleanup: improve format_plural usage, add some missing placeholder/check calls, and introduce API for <link> tags.
Diffstat (limited to 'modules/blogapi.module')
-rw-r--r--modules/blogapi.module5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/blogapi.module b/modules/blogapi.module
index d836c27fd..3c6172837 100644
--- a/modules/blogapi.module
+++ b/modules/blogapi.module
@@ -530,7 +530,10 @@ function blogapi_menu($may_cache) {
$items = array();
if ($_GET['q'] == variable_get('site_frontpage', 'node')) {
- drupal_set_html_head('<link rel="EditURI" type="application/rsd+xml" title="RSD" href="' . url('blogapi/rsd', NULL, NULL, TRUE) . '" />');
+ drupal_add_link(array('rel' => 'EditURI',
+ 'type' => 'application/rsd+xml',
+ 'title' => t('RSD'),
+ 'href' => url('blogapi/rsd', NULL, NULL, TRUE)));
}
if ($may_cache) {