function domain_test_domain_cron in Domain Access 7.3
Implements hook_domain_cron().
We should both receive a $domain array and be setting the active domain to the current $domain, so we can test both here.
File
- tests/
domain_test.domain.inc, line 61 - Domain hook tests.
Code
function domain_test_domain_cron($domain) {
$_domain = domain_get_domain();
if ($_domain['domain_id'] == $domain['domain_id']) {
domain_test_set($domain['sitename']);
}
else {
domain_test_set('Failed');
}
}