You are here

function _support_domains in Support Ticketing System 6

Same name and namespace in other branches
  1. 7 support.module \_support_domains()

Extract domains.

1 call to _support_domains()
support_account_load in ./support.module
Match up a user account with an incoming email. Create account if email doesn't match any. TODO: Make it possible to assign multiple email addresses to one account.


./support.module, line 640


function _support_domains($client, $global) {
  $domains = array();
  $string = "{$client}, {$global}";
  $raw = explode(',', $string);
  foreach ($raw as $domain) {
    if ($domain) {
      $domains[] = check_plain(trim($domain));
  return $domains;