function _list_update_7001_float_string_cast

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

Code

function _list_update_7001_float_string_cast($element) {
    return (string) (double) $element;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.