function smartqueue_domain_views_check_subqueue in Smartqueue Domain 7
Check the current queue and add the domains subqueues if they don't exist.
1 call to smartqueue_domain_views_check_subqueue()
- smartqueue_domain_handler_filter_in_domain::query in ./
smartqueue_domain_handler_filter_in_domain.inc - Add this filter to the query.
File
- ./
smartqueue_domain.module, line 149
Code
function smartqueue_domain_views_check_subqueue($queue) {
$domain = domain_get_domain();
$queue_info = explode(':', $queue->reference);
if (isset($queue_info[3])) {
$domain_id = $queue_info[3];
if ($domain['domain_id'] == $domain_id) {
return TRUE;
}
}
return FALSE;
}