hook_domainlinks($domain)Returns links to additional functions for the Domain Access module's admin screen
Note that if your page requires a user_access check other than 'administer domains' you should explictly check permissions before returning the array.
If you do not provide a link for a specific domain, return FALSE.
$domain An array of data for the active domain, taken from the {domain} table.
An array of links to append to the admin screen, in the format:
The data returned by this function will be passed through the l() function.
./API.php, line 161
<?php
function hook_domainlinks($domain) {
// These actions do not apply to the primary domain.
if (user_access('my permission') && $domain['domain_id'] > 0) {
$links[] = array(
'title' => t('settings'),
'path' => 'admin/build/domain/myaction/'. $domain['domain_id']
);
return $links;
}
return FALSE;
}
?>