You are here

function domain_prefix_domainlinks in Domain Access 5

Same name and namespace in other branches
  1. 6.2 domain_prefix/domain_prefix.module \domain_prefix_domainlinks()

Implement hook_domainlinks()

Parameters

$domain: The currently active $domain array, provided by domain_lookup().

File

domain_prefix/domain_prefix.module, line 241
Interface for selective table prefixing for use with Domain Access. For this module to work correctly, you will need to follow the INSTALL.txt instructions for editing your settings.php file.

Code

function domain_prefix_domainlinks($domain) {
  if (user_access('administer table prefixing')) {
    $links[] = array(
      'title' => t('tables'),
      'path' => 'admin/build/domain/prefix/' . $domain['domain_id'],
    );
    return $links;
  }
}