diff options
Diffstat (limited to 'modules/blogapi.module')
-rw-r--r-- | modules/blogapi.module | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/blogapi.module b/modules/blogapi.module index a603b2185..534174660 100644 --- a/modules/blogapi.module +++ b/modules/blogapi.module @@ -512,15 +512,16 @@ function blogapi_settings() { return $output; } -function blogapi_menu() { - global $user; +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) . '" />'); } - $items[] = array('path' => 'blogapi', 'title' => t('RSD'), 'callback' => 'blogapi_blogapi', 'access' => user_access('access_content'), 'type' => MENU_CALLBACK); + if ($may_cache) { + $items[] = array('path' => 'blogapi', 'title' => t('RSD'), 'callback' => 'blogapi_blogapi', 'access' => user_access('access_content'), 'type' => MENU_CALLBACK); + } return $items; } |