You are here

function _sheetnode_text_import_value in Sheetnode 6

Same name and namespace in other branches
  1. 7.2 modules/sheetnode_text/sheetnode_text.module \_sheetnode_text_import_value()
  2. 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 184

Code

function _sheetnode_text_import_value($val) {
  $val = trim($val);
  $num = parse_formatted_number($val);
  return $num === FALSE ? $val : $num;
}