You are here

function themekey_redirect_encode_domain_selector in ThemeKey 7.3

1 call to themekey_redirect_encode_domain_selector()
themekey_redirect_block_configure in themekey_redirect/themekey_redirect.module
Implements hook_block_configure().

File

themekey_redirect/themekey_redirect.module, line 393
Define rules to redirect the user to a different domain. The common use-case is to setup sub-domains for mobile sites. In this case you can configure ThemeKey Redirect to detect mobile clients and redirect the user accordingly. In ThemeKey itself you…

Code

function themekey_redirect_encode_domain_selector($domain_selector) {
  $domain_selector_strings = array();
  foreach ($domain_selector as $url => $link) {
    $domain_selector_strings[] = $url . '|' . $link;
  }
  return implode("\n", $domain_selector_strings);
}