Active
Project:
Covert Fields
Version:
6.x-1.0-rc3
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2011 at 03:25 UTC
Updated:
30 Aug 2011 at 03:25 UTC
I think I would fall in love with this module, if I knew how to use it. Would be nice to have section for code snippets, like computed field has; http://drupal.org/node/126522.
My situation, is not about validating. It's about storing the entered value. I repeat, I don't need validations or money cck, or formatters of any kind. I just need to store the information, after a preg_replace. Here is what this would look like, normally if I want to strip out $, €, ¥, etc..:
$entered_value = "€1,490.95";
echo preg_replace("/[^0-9,.]/", "", $entered_value);
The echo would be correct:
1,490.95
But how the heck do you implement this in "Code for Stored Value"?
That's the big question?