You are here

function domain_locale_FIXME_domainlinks in Domain Locale 7

Implements hook_domainlinks().

FIXME. On Domain 7.2, the description for this hook said: 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.

Parameters

$domain: An array of data for the active domain, taken from the {domain} table.

  • domain_id -- the unique identifier of this domain
  • subdomain -- the host path of the url for this domain
  • sitename -- the human-readable name of this domain

Return value

An array of links to append to the admin screen, in the format:

  • title -- the link title
  • path -- the link path (a Drupal-formatted path)

The data returned by this function will be passed through the l() function.

If you do not provide a link for a specific domain, return FALSE.

File

./domain_locale.module, line 60
Provides domain specific language settings.

Code

function domain_locale_FIXME_domainlinks($domain) {
  if (isset($domain['domain_id'])) {
    $links[] = array(
      'title' => t('languages'),
      'path' => 'admin/structure/domain/view/' . $domain['domain_id'] . '/language',
    );
    return $links;
  }
  return FALSE;
}