Can I disable module menu items? I have a module with a menu which I build like this:

in moduleName.module

function moduleName_menu() {
  $items = array(
    'title' =&gt; 'whatever',
    'page callback' =&gt; 'something_callback',
    ...
    'type' =&gt; MENU_NORMAL_ITEM
  );
  return items;
}


Now I want certain items to be disabled (Clicking them should do nothing, similar to using disabled="disabled" on a &lt;input type="button"&gt;). I tried adding '#disabled' =&gt; true, as I would do for form items, but that didn't work. How can I disable menu items?

UPDATE

I tried using myTheme_menu_link to disable the menu items. So in the code above, I add 'disabled' =&gt; true or 'disabled' =&gt; false to certain menu items. Then, my theme_menu_link function looks like this:

function vitrine_menu_link(array $variables) {
    $element = $variables['element'];
  $sub_menu = '';

  if ($element['#below']) {
    $sub_menu = drupal_render($element['#below']);
  }
  $output = l($element['#title'], $element['#href'], $element['#localized_options']);
  if (isset($element['disabled']) &amp;&amp; $element['disabled']) {
    error_log('Hoping to see this somewhere in the log');
    $output = '&lt;a&gt;' . $element['#title'] .  '&lt;/a&gt;';
  }
  return '&lt;li' . drupal_attributes($element['#attributes']) . '&gt;' . $output . $sub_menu . "&lt;/li&gt;\n";    
}


I test it by emptying all caches, which rebuilds the menu, but still, the error I'm trying to log never get's logged. It seems as though my 'disabled' =&gt; true never makes it to this function...
This can only be done on the theme layer. Try taking a look at theme_menu_link().