function uc_option_image_delete in Ubercart Option Images 6
Delete an option image.
Parameters
int $nid:
int $aid:
int $oid:
Return value
mixed Results of db_query().
1 call to uc_option_image_delete()
- uc_option_image_save in ./
uc_option_image.module - Save the uploaded file in the 'option-images' folder and insert into the files table.
File
- ./
uc_option_image.module, line 468 - Provides image upload fields for attribute options. @author Tj Holowaychuk <tj@vision-media.ca/> @link http://vision-media.ca @todo supply 'default' image field when no option images are supplied or no option image attributes are…
Code
function uc_option_image_delete($nid, $aid, $oid) {
return db_query("DELETE FROM {files} WHERE filename = '%s'", uc_option_image_id($nid, $aid, $oid));
}