function content_taxonomy_node_import_check_numeric in Node import 6
This is for using numeric values as terms. Normally, numeric values are treated as TIDs. Using a # in front of your number will make sure it is treated as a value.
Parameters
<type> $value:
Return value
<type>
2 calls to content_taxonomy_node_import_check_numeric()
- content_taxonomy_node_import_get_children in supported/
content_taxonomy/ content_taxonomy.inc - Used to contruct the lineage of terms for use by hierarchical select widget.
- content_taxonomy_node_import_values_alter in supported/
content_taxonomy/ content_taxonomy.inc - Implementation of hook_node_import_values_alter()
File
- supported/
content_taxonomy/ content_taxonomy.inc, line 266 - Support file for the CCK Content Taxonomy module
Code
function content_taxonomy_node_import_check_numeric($value) {
$pos = strpos($value, "#");
if ($pos === 0) {
$value = substr($value, 1);
}
return $value;
}