function _support_domains in Support Ticketing System 7
Same name and namespace in other branches
- 6 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.
File
- ./
support.module, line 691 - support.module
Code
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;
}