You are here

function domain_prefix_domainlinks in Domain Access 6.2

Same name and namespace in other branches
  1. 5 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 191
Interface for selective table prefixing for use with Domain Access.

Code

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