[eluser]wiredesignz[/eluser]
I usually set the error message before the test.
Code:
function ratings_check() {
$this->validation->set_message('ratings_check','You must specify at least one rating (US or Canada).');
return (bool)(!$this->input->post('us_rating') && !$this->input->post('cdn_rating')) ;
}
Of course if the numeric check fails first the callback won't be run
EDIT: Validation is not carried out on an empty input unless the "required" switch is used.
You may want to add the callback test to the submit button or some other field instead.