function blogapi_menu in Drupal 4
Same name and namespace in other branches
- 5 modules/blogapi/blogapi.module \blogapi_menu()
- 6 modules/blogapi/blogapi.module \blogapi_menu()
File
- modules/
blogapi.module, line 574 - Enable users to post using applications that support XML-RPC blog APIs.
Code
function blogapi_menu($may_cache) {
$items = array();
if (drupal_is_front_page()) {
drupal_add_link(array(
'rel' => 'EditURI',
'type' => 'application/rsd+xml',
'title' => t('RSD'),
'href' => url('blogapi/rsd', NULL, NULL, TRUE),
));
}
if ($may_cache) {
$items[] = array(
'path' => 'blogapi',
'title' => t('RSD'),
'callback' => 'blogapi_blogapi',
'access' => user_access('access content'),
'type' => MENU_CALLBACK,
);
}
return $items;
}