function uc_role_uc_product_feature in Ubercart 8.4
Implements hook_uc_product_feature().
File
- uc_role/
uc_role.module, line 373 - Grants roles upon accepted payment of products.
Code
function uc_role_uc_product_feature() {
$features[] = [
'id' => 'role',
'title' => t('Role assignment'),
'callback' => 'Drupal\\uc_role\\Form\\RoleFeatureForm',
'delete' => 'uc_role_feature_delete',
'settings' => 'Drupal\\uc_role\\Form\\FeatureSettingsForm',
];
return $features;
}