function uc_option_image_key in Ubercart Option Images 7
Get the id key for a given type
Parameters
$type: uc_attribute, uc_option, uc_product or uc_class
Return value
A string corresponding to the name of the id field
3 calls to uc_option_image_key()
- uc_option_image_form_uc_object_options_form_alter in ./
uc_option_image.module - Implements hook_uc_object_options_form_alter()
- uc_option_image_product_options_submit in ./
uc_option_image.module - uc_option_image_save_form_data in ./
uc_option_image.module
File
- ./
uc_option_image.module, line 642 - Allow store administrators to add images to attribute options.
Code
function uc_option_image_key($type) {
return substr($type, 3, 1) . 'id';
}