Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be nice if I could convert an existing text field containing a number into a Formatted Number. Examples where this could be useful include but are not limited to:
- Data that existed in a Drupal instance before this module was used on a site.
- Data created or imported with a module that does not support this CCK type, such as the Node import module.
Comments
Comment #1
markus_petrux CreditAttribution: markus_petrux commentedThis CCK field stores numbers internally in plain PHP/SQL format. The formatting occurs only on the input element, or when the field is displayed. So if you need to populate these fields programmatically, all you need to do is give it a PHP number without formatting options.
I haven't used the Node import module, but I guess it should work with these fields. If you have tried and it doesn't work, which was the problem/error exactly?
Comment #2
Aren Cambre CreditAttribution: Aren Cambre commented#446866: Support a number type other than integer
But I think this could still be useful because it would support natural evolution of Drupal content types. Nice module, by the way!
Comment #3
markus_petrux CreditAttribution: markus_petrux commentedOk, I'll subscribe to the other feature request to see if there's anything that this module needs to expose so that it can be compatible with Node import.
Comment #4
markus_petrux CreditAttribution: markus_petrux commentedThe other issue doesn't move much, so I'm switching the status here to won't fix, at least until there's a bit more light on what's really necessary. This issue can be re-opened when that happens.