function _sheetnode_text_import_value in Sheetnode 7.2
Same name and namespace in other branches
- 6 modules/sheetnode_text/sheetnode_text.module \_sheetnode_text_import_value()
- 7 modules/sheetnode_text/sheetnode_text.module \_sheetnode_text_import_value()
Utility function to import a cell value.
1 call to _sheetnode_text_import_value()
- sheetnode_text_import_table in modules/
sheetnode_text/ sheetnode_text.module - API function to import a single table.
File
- modules/
sheetnode_text/ sheetnode_text.module, line 195 - Module file for the sheetnode_text module.
Code
function _sheetnode_text_import_value($val) {
$val = trim($val);
$num = parse_formatted_number($val);
return $num === FALSE ? $val : $num;
}