You are here

function commerce_unrequire_form_elements in Commerce Core 7

Makes any required form elements in a form unrequired.

Parameters

$form: The form array to search for required elements.

1 call to commerce_unrequire_form_elements()
commerce_customer_field_widget_form in modules/customer/commerce_customer.module
Implements hook_field_widget_form().

File

./commerce.module, line 290
Defines features and functions common to the Commerce modules.

Code

function commerce_unrequire_form_elements(&$form) {
  array_walk_recursive($form, '_commerce_unrequire_element');
}