function validate_title($field) { if (!KFuncs::is_title_clean($field->get_data())) { return KFuncs::raise_error("Contains invalid characters"); } }