You are here

function hansel_domain_switch_subdomain_compare in Hansel breadcrumbs 7

Same name and namespace in other branches
  1. 8 domain/hansel_domain.module \hansel_domain_switch_subdomain_compare()

Callback for "subdomain" switch to compare a given value.

Parameters

array $arguments:

string $value:

Return value

boolean

1 string reference to 'hansel_domain_switch_subdomain_compare'
hansel_domain_hansel_switch_types in domain/hansel_domain.module
Implements hook_hansel_switch_types().

File

domain/hansel_domain.module, line 130
Hansel domain integration

Code

function hansel_domain_switch_subdomain_compare($arguments, $value) {
  global $_domain;
  return drupal_strtolower($_domain['subdomain']) == drupal_strtolower($value);
}