You are here

function uc_form_alter in Ubercart 6.2

Same name and namespace in other branches
  1. 8.4 uc_store/uc_store.module \uc_form_alter()
  2. 7.3 uc_store/uc_store.module \uc_form_alter()

Executes hook_uc_form_alter() implementations.

API function to invoke hook_uc_form_alter() implementations allowing those modules to alter the form before the Drupal layer hook_form_alter() is invoked.

See also

hook_uc_form_alter()

5 calls to uc_form_alter()
uc_catalog_buy_it_now_form in uc_product/uc_product.module
Form builder for uc_catalog_buy_it_now_form().
uc_order_add_product_form in uc_order/uc_order.admin.inc
Sets the quantity and attributes of a product added to the order.
uc_product_add_to_cart_form in uc_product/uc_product.module
Form to add the $node product to the cart.
uc_product_kit_add_to_cart_form in uc_product_kit/uc_product_kit.module
Lets the cart know how many of which products are included in a kit.
uc_product_kit_buy_it_now_form in uc_product_kit/uc_product_kit.module
Adds to cart button with any extra fields.

File

uc_store/uc_store.module, line 2319
Contains global Ubercart functions and store administration functionality.

Code

function uc_form_alter(&$form, &$form_state, $form_id) {
  $form['__drupal_alter_by_ref'] = array(
    &$form_state,
  );
  drupal_alter('uc_form', $form, $form_id);
}