You are here

function _customer_profile_type_ui_disable_this_pane in Customer Profile Type UI 7

4 calls to _customer_profile_type_ui_disable_this_pane()
customer_profile_type_ui_pane_checkout_form in includes/customer_profile_type_ui.checkout_pane.inc
Checkout pane callback: returns a customer profile edit form.
customer_profile_type_ui_pane_checkout_form_submit in includes/customer_profile_type_ui.checkout_pane.inc
Checkout pane callback: submits a customer profile edit form.
customer_profile_type_ui_pane_checkout_form_validate in includes/customer_profile_type_ui.checkout_pane.inc
Checkout pane callback: validates a customer profile edit form.
customer_profile_type_ui_pane_review in includes/customer_profile_type_ui.checkout_pane.inc
Checkout pane callback: returns the cart contents review data for the Review checkout pane.

File

includes/customer_profile_type_ui.checkout_pane.inc, line 86
Checkout pane callback functions for the customer_profiles_type_ui module.

Code

function _customer_profile_type_ui_disable_this_pane($checkout_pane_id, &$order) {
  if (!isset($order->disabled_customer_profiles)) {

    // Invoke the event that will populate the order with an array
    // of customer profile types to disable in the checkout panes.
    // We'll only do this once to save time.
    $order->disabled_customer_profiles = array();
    rules_invoke_all('before_customer_profile_type_panes', $order);
  }

  // Check to see if this pane should be disabled or not.
  return isset($order->disabled_customer_profiles[$checkout_pane_id]);
}