You are here

function commerce_order_rules_access in Commerce Core 7

Rules integration access callback.

4 string references to 'commerce_order_rules_access'
commerce_cart_rules_event_info in modules/cart/commerce_cart.rules.inc
Implements hook_rules_event_info().
commerce_checkout_rules_event_info in modules/checkout/commerce_checkout.rules.inc
Implements hook_rules_event_info().
commerce_payment_rules_event_info in modules/payment/commerce_payment.rules.inc
Implements hook_rules_event_info().
commerce_product_reference_rules_event_info in modules/product_reference/commerce_product_reference.rules.inc
Implements hook_rules_event_info().

File

modules/order/commerce_order.module, line 871
Defines the core Commerce order entity and API functions to manage orders and interact with them.

Code

function commerce_order_rules_access($type, $name) {
  if ($type == 'event' || $type == 'condition') {
    return commerce_order_access('view');
  }
}