function globallink_get_configured_fields_for_cp in GlobalLink Connect for Drupal 7.7
1 call to globallink_get_configured_fields_for_cp()
- globallink_commerce_get_xml in globallink_commerce/
globallink_commerce.inc - Gets XML data from specific commerce product.
File
- globallink_commerce/
globallink_commerce.inc, line 568
Code
function globallink_get_configured_fields_for_cp($cp_type) {
$result = db_select('globallink_field_config', 'tfg')
->fields('tfg')
->condition('content_type', 'cp:' . $cp_type, '=')
->condition('entity_type', 'commerce_product', '=')
->execute();
$arr = array();
foreach ($result as $row) {
$arr[$row->field_name] = $row;
}
return $arr;
}