function blogapi_init in Blog API 7
Same name and namespace in other branches
- 7.2 blogapi.module \blogapi_init()
Implement hook_init().
File
- ./
blogapi.module, line 889 - Enable users to post using applications that support XML-RPC blog APIs.
Code
function blogapi_init() {
if (drupal_is_front_page()) {
drupal_add_html_head_link(array(
'rel' => 'EditURI',
'type' => 'application/rsd+xml',
'title' => t('RSD'),
'href' => url('blogapi/rsd', array(
'absolute' => TRUE,
)),
), TRUE);
}
}