function globallink_commerce_get_info in GlobalLink Connect for Drupal 7.7
1 call to globallink_commerce_get_info()
- globallink_commerce_send_for_translations in globallink_commerce/
globallink_commerce.inc - Sends commerce for translation.
File
- globallink_commerce/
globallink_commerce.inc, line 581
Code
function globallink_commerce_get_info($pid) {
$results = db_select(GLOBALLINK_ENTITY_TYPE_COM, 'cp')
->fields('cp')
->condition('product_id', $pid, '=')
->execute();
$arr = new stdClass();
foreach ($results as $result) {
$arr = $result;
}
return $arr;
}