hook_domainlinks($domain)
domain/API.php, line 157
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.
$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:
| Name | Description |
|---|---|
| Domain hook functions | Core hooks for the Domain module suite. |
<?php
function hook_domainlinks($domain) {
if (user_access('my permission')) {
$links[] = array(
'title' => t('settings'),
'path' => 'admin/build/domain/myaction/'. $domain['domain_id']
);
return $links;
}
}
?>