function uc_file_uc_product_feature in Ubercart 8.4
Same name and namespace in other branches
- 7.3 uc_file/uc_file.module \uc_file_uc_product_feature()
Implements hook_uc_product_feature().
File
- uc_file/
uc_file.module, line 191 - Allows products to be associated with downloadable files.
Code
function uc_file_uc_product_feature() {
$features[] = [
'id' => 'file',
'title' => t('File download'),
'callback' => 'Drupal\\uc_file\\Form\\FileFeatureForm',
'delete' => 'uc_file_feature_delete',
'settings' => 'Drupal\\uc_file\\Form\\FeatureSettingsForm',
];
return $features;
}