Is it possible to create a custom link in the admin menu.
I have created custom links that help my customers to administer the site.
t would be best to add these links to the menu..

Any example and where to put it would be great.
thanks,

Pinda

Comments

nirbhasa’s picture

In the settings, you can specify the URL of a help page.

If you need to add more links, you can use hook_domainadminlinks in a custom module:

Here is an example:

function mymodule_domainadminlinks() {
   $links = array();
   global $_domain;
   
   if (user_access('administer domain blocks')) {	               
     //Changing sidebar blocks
     $links['domadm_region'] = array(
       'title' => t('Edit page regions'),
       'href' => 'admin/build/domain/blocks/'. $_domain['domain_id'],
       'weight' => -4,
     ); 
     //Add new sidebar block    
     $links['domadm_block'] = array(
       'title' => t('Add region block'),
       'href' => 'admin/build/domain/blocks/add',
       'weight' => -3,
     );              
   }	
   return $links;
  
}  
pindaman’s picture

Status: Active » Fixed

You're great..

Thanks for explaining.
Now I know what hooks are for :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.