/**
* Implements hook_commerce_checkout_pane_info_alter().
*/
function ife_commerce_checkout_pane_info_alter(&$panes) {
  foreach ((array) $panes as $key => $pane) {
    if (!isset($panes[$key]['callbacks'])) {
      $panes[$key]['callbacks'] = array(
          'checkout_form_validate' => 'ife_form_validator',
      );
    }
  }
}

When the checkout_form_validate callback function is set, the default validation callback function for the checkout pane would no longer be active. Is there a way to fix it?
Files: 

Comments

Issue summary:View changes
Status:Active» Needs review
StatusFileSize
new517 bytes

This fixes a glitch that prevents ife running if ANY custom callback is defined on a checkout pane. This needs more work though to also to get it to work when a custom validation handler is defined.