function _list_update_7001_float_string_cast in Drupal 7
Helper callback function to cast the array element.
1 string reference to '_list_update_7001_float_string_cast'
- list_update_7001 in modules/
field/ modules/ list/ list.install - Rename the list field types and change 'allowed_values' format.
File
- modules/
field/ modules/ list/ list.install, line 94 - Install, update and uninstall functions for the list module.
Code
function _list_update_7001_float_string_cast($element) {
return (string) (double) $element;
}