function commerce_file_form_commerce_product_variation_type_form_alter in Commerce File 8.2
Implements hook_form_BASE_FORM_ID_alter().
File
- ./
commerce_file.module, line 148 - Extends Commerce License with the ability to sell access to files.
Code
function commerce_file_form_commerce_product_variation_type_form_alter(&$form, FormStateInterface $form_state, $form_id) {
$form['#validate'][] = 'commerce_file_product_variation_type_form_validate';
$form['actions']['submit']['#submit'][] = 'commerce_file_product_variation_type_form_submit';
}