function hook_commerce_coupon_access_query_substitute in Commerce Coupon 7.2
Modules can invoke this hook to provide a different query for determining query access for coupon entities. If no modules implement this hook, Commerce Coupon will run commerce_entity_access_query_alter() to determine query access.
Parameters
object $query: The query that is asking for coupon access-control logic
string $coupon_alias: The alias of the coupon table in the query
1 function implements hook_commerce_coupon_access_query_substitute()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
1 invocation of hook_commerce_coupon_access_query_substitute()
- commerce_coupon_apply_access_query_substitute in ./
commerce_coupon.module - Call implementations of hook_commerce_coupon_access_query_substitute.
File
- ./
commerce_coupon.api.php, line 30
Code
function hook_commerce_coupon_access_query_substitute($query, $coupon_alias) {
// See commerce_coupon_user_commerce_coupon_access_query_substitute().
}