[eluser]farinspace[/eluser]
I think you should be able to setup your rules like following:
Code:
$this->form_validation->set_rules('field', 'Field', 'trim|required|callback_my_value_check[field]');
Code:
function my_value_check($fieldValue,$fieldName) { ... }
the "field" name should come through as the second parameter ... (i think this should work)
...
Also perhaps you can extend "/system/libraries/Validation.php" ... look at line 288, that is where a callback function gets called, you can probably modify it to also pass the field name as a parameter ...