t('My item'), // #attributes are used for list items (LI). Note the special syntax for // the 'class' attribute. '#attributes' => array('class' => array('mymodule-myitem')), '#href' => 'mymodule/path', // #options are passed to l(). Note that you can apply 'attributes' for // links (A) here. '#options' => array( 'query' => drupal_get_destination(), ), // #weight controls the order of links in the resulting item list. '#weight' => 50, ); // Add link to manually run cron. $content['menu']['myitem']['cron'] = array( '#title' => t('Run cron'), '#access' => user_access('administer site configuration'), '#href' => 'admin/reports/status/run-cron', ); }