function _uc_product_get_image_field_filepath in Ubercart 5
AJAX callback helper for product images.
1 string reference to '_uc_product_get_image_field_filepath'
- uc_product_menu in uc_product/
uc_product.module - Implementation of hook_menu().
File
- uc_product/
uc_product.module, line 2569 - The product module for Ubercart.
Code
function _uc_product_get_image_field_filepath($nid) {
$result = db_result(db_query_range("SELECT filepath FROM {files} WHERE nid = %d ORDER BY fid", $nid, 0, 1));
if ($result) {
print $result;
}
else {
print 'false';
}
exit;
}