I made a small change to theme_menu_item_link (includes/menu.inc) which will allow you to enter a static link to be displayed as a menu item.
Original:
function theme_menu_item_link($item, $link_item) {
return l($item['title'], $link_item['path'], array_key_exists('description', $item) ? array('title' => $item['description']) : array());
}
New:
function theme_menu_item_link($item, $link_item) {
$link = '';
if(substr($link_item['path'], 0, 5) == "link:") {
$link_item['path'] = substr($link_item['path'], 5);
// This needs to be a new function in common.inc - such as "static_link" or such
// static_link($item['title'], $link_item['path'], array_key_exists('description', $item) ? array('title' => $item['description']) : array());
// -Start-
$text = $item['title'];
$url = substr($link_item['path'], 5);
$attributes = array_key_exists('description', $item) ? array('title' => $item['description']) : array();
$link = '<a href="/'. check_url($url) .'"'. drupal_attributes($attributes) .'>'. ($html ? $text : check_plain($text)) .'</a>';
// -End-
}
else {
$link = l($item['title'], $link_item['path'], array_key_exists('description', $item) ? array('title' => $item['description']) : array());
}
return $link;
}
Themed menu links will need to be updated as well (eg. mytheme_menu_link_item) as well as the Theme Engines.