function uc_roles_product_feature in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_roles/uc_roles.module \uc_roles_product_feature()
Implementation of hook_product_feature().
File
- uc_roles/
uc_roles.module, line 361 - Grants roles upon accepted payment of products
Code
function uc_roles_product_feature() {
$features[] = array(
'id' => 'role',
'title' => t('Role assignment'),
'callback' => 'uc_roles_feature_form',
'delete' => 'uc_roles_feature_delete',
'settings' => 'uc_roles_feature_settings',
);
return $features;
}