You are here

function uc_role_feature_delete in Ubercart 8.4

Deletes all role data associated with a given product feature.

Parameters

int $pfid: An Ubercart product feature ID.

1 string reference to 'uc_role_feature_delete'
uc_role_uc_product_feature in uc_role/uc_role.module
Implements hook_uc_product_feature().

File

uc_role/uc_role.module, line 458
Grants roles upon accepted payment of products.

Code

function uc_role_feature_delete($pfid) {
  $connection = \Drupal::database();
  $connection
    ->delete('uc_roles_products')
    ->condition('pfid', $pfid)
    ->execute();
}