function valid_email($x) { if (get_config('system', 'disable_email_validation')) { return true; } return valid_email_regex($x); }
public function testBadEmail() { $this->assertFalse(valid_email_regex('nobody!uses!these!any.more')); }