You are here

function uc_form_alter in Ubercart 8.4

Same name and namespace in other branches
  1. 6.2 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()

2 calls to uc_form_alter()
BuyItNowForm::buildForm in uc_product/src/Form/BuyItNowForm.php
Form constructor.
Products::addProductForm in uc_order/src/Plugin/Ubercart/OrderPane/Products.php
Sets the quantity and attributes of a product added to the order.
1 string reference to 'uc_form_alter'
uc_attribute_module_implements_alter in uc_attribute/uc_attribute.module
Implements hook_module_implements_alter().

File

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

Code

function uc_form_alter(&$form, &$form_state, $form_id) {
  \Drupal::moduleHandler()
    ->alter('uc_form', $form, $form_state, $form_id);
}