blogapi_menu

5 blogapi.module blogapi_menu($may_cache)
6 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;
}
Login or register to post comments