An administrative link on the right side of the page

I'm not sure if anyone will ever have a use for it, but user "santos" add some questions on how to do this in IRC and then contributed it back, so here it is just in case:

function hook_menu(){
$items['admin/mymodule'] = array(
'title' => t('title'),
'description' => t('administration description'),
'position' => 'right', # HERE
'page callback' => 'system_admin_menu_block_page',
'access arguments' => array('blogdash'),
'file' => 'system.admin.inc',
'file path' => drupal_get_path('module', 'system'),
);

Add new comment

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

Comment using an existing account (Google, Twitter, etc.)