function commerce_checkout_complete_form_access in Commerce Core 7
Access callback: determines access to the "Simulate checkout completion" local action.
1 string reference to 'commerce_checkout_complete_form_access'
- commerce_checkout_menu in modules/
checkout/ commerce_checkout.module - Implements hook_menu().
File
- modules/
checkout/ commerce_checkout.module, line 108 - Enable checkout as a multi-step form with customizable pages and a simple checkout pane API.
Code
function commerce_checkout_complete_form_access($order) {
// Returns TRUE if the link is enabled via the order settings form and the
// user has access to update the order.
return variable_get('commerce_order_simulate_checkout_link', TRUE) && commerce_order_access('update', $order);
}