function _sheetnode_text_import_value in Sheetnode 7
Same name and namespace in other branches
- 6 modules/sheetnode_text/sheetnode_text.module \_sheetnode_text_import_value()
- 7.2 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 190 - Module file for the sheetnode_text module. This extends sheetnodes to enable importing of text to sheetnodes.
Code
function _sheetnode_text_import_value($val) {
$val = trim($val);
$num = parse_formatted_number($val);
return $num === FALSE ? $val : $num;
}