Closed (won't fix)
Project:
CCK Validation
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2008 at 12:50 UTC
Updated:
28 Apr 2009 at 14:25 UTC
Hi, thank you for the nice module.
I am trying to use your Module not for validation, but for auto correction.
E.g:
if ( $node->field_ort[0]['value'] ){
$node->field_ort[0]['value'] = ucwords(strtolower( $node->field_ort[0]['value'] ));
}
As you mentioned - the $node->field values are read only. So this doesnt work so far.
Is there a possibility to make the node values writeable so that the example above would work?
Thank you very much.
Comments
Comment #1
derhasi commentedYou have to to change
function _cck_validation_process_validation()andfunction _cck_validation_run_code()to call$nodeby reference =>&$node.Comment #2
derhasi commented