function _product_node_import_is_product in Node import 5
Check whether the node_import $type provided to the hooks is actually a $node->ptype.
3 calls to _product_node_import_is_product()
- product_node_import_fields in supported/
ecommerce/ product.inc - Implementation of hook_node_import_fields().
- product_node_import_global in supported/
ecommerce/ product.inc - Implementation of hook_node_import_global().
- product_node_import_static in supported/
ecommerce/ product.inc - Implementation of hook_node_import_static().
File
- supported/
ecommerce/ product.inc, line 127 - Support file for product.module of the e-commerce module bundle.
Code
function _product_node_import_is_product($type) {
static $ptypes;
if (!isset($ptypes)) {
$ptypes = product_get_ptypes();
}
if (isset($ptypes[$type])) {
return TRUE;
}
return FALSE;
}