function uc_option_image_id in Ubercart Option Images 6
Returns a unique ID corrosponding to the node id, attribute id, and option.
4 calls to uc_option_image_id()
- uc_option_image_delete in ./
uc_option_image.module - Delete an option image.
- uc_option_image_form_alter in ./
uc_option_image.module - Implements hook_form_alter().
- uc_option_image_load in ./
uc_option_image.module - Load image file.
- 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 507 - 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_id($nid, $aid, $oid) {
return 'option_image_' . $nid . '_' . $aid . '_' . $oid;
}