Show / Hide administration menu (module) Is it possible to use a javascript function for a link in Drupal?
I would like to make an option to show/hide the administration menu when clicked on the Drupal icon.
Something simple like this:

  $links['icon'] = array(
    '#title' =&gt; theme('admin_menu_icon'),
    '#attributes' =&gt; array('class' =&gt; array('admin-menu-icon')),
    '#href' =&gt; 'javascript: alert("ok")', 
    '#options' =&gt; array(
      'html' =&gt; TRUE,
    ),
Very simple... Just found it myself :)

'#attributes' =&gt; array('onmousedown' =&gt; array('alert("ok")')),