blogapi_menu

Versions
4.6 – 5
blogapi_menu($may_cache)
6
blogapi_menu()

Code

modules/blogapi.module, line 554

<?php
function blogapi_menu($may_cache) {
  $items = array();

  if ($_GET['q'] == variable_get('site_frontpage', 'node')) {
    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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.