I have a problem:
function drupal_menu_link($variables) {
$element = $variables['element'];
$sub_menu = $element['#below'] ? drupal_render($element['#below']) : '';
return '<a href="/drupal/'.$element['#href'].'" title = "'.$element['#title'].'" ><li' . drupal_attributes($element['#attributes']) . '>' . $element['#title'] .'</li></a>';
}
How can I base on aliases, not the hrefs? When I hover on an element I see node/number instead of alias. I made a redirection, but it happens after click. Can somebody help me? I was looking for that in other themes but I am bad at it and I just don't understand how it works.