function uc_roles_feature_delete in Ubercart 7.3
Same name and namespace in other branches
- 5 uc_roles/uc_roles.module \uc_roles_feature_delete()
- 6.2 uc_roles/uc_roles.module \uc_roles_feature_delete()
Deletes all role data associated with a given product feature.
Parameters
int $pfid: An Ubercart product feature ID.
1 string reference to 'uc_roles_feature_delete'
- uc_roles_uc_product_feature in uc_roles/
uc_roles.module - Implements hook_uc_product_feature().
File
- uc_roles/
uc_roles.module, line 968 - Grants roles upon accepted payment of products.
Code
function uc_roles_feature_delete($pfid) {
db_delete('uc_roles_products')
->condition('pfid', $pfid)
->execute();
}