I got it to work, but not sure if its OK

Posts: 96
Joined: 10/29/2007
Bug Finder

I wrote a custom validation...

function shopping_form_alter($form_id, &$form) {
if (strcmp('uc_cart_checkout_form', $form_id) != 0) return;
$form['#validate'] = array('credit_check_expdate' => array());
}

But at the end of my validation, I called
uc_cart_checkout_form_validate($form_id, $form_values)

Is this OK way to do this, could I have changed my form alter so BOTH validations would have been called?
JIm

What hooks are invoked on "Review Order" By: VitaLife (5 replies) Wed, 02/06/2008 - 23:45