Skip to content

Commit

Permalink
introduce new theme function to present just the order w/o the form.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bèr Kessels committed Jan 11, 2010
1 parent 5df728d commit 43df906
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ideal_payment_api.module
Expand Up @@ -289,6 +289,22 @@ function ideal_payment_api_issuer_form_submit($form, &$form_state) {
ideal_payment_api_transreq_call($form_state['values']['issuer']);
}


/**
* Theme issuer form/
* @ingroup theme
*/
function theme_ideal_payment_api_issuer_form($form) {
dpm($form['order']);
$output = '';
$output .= '<div class="order">';
$output .= $form['order']['#value']['description']; //no filter_xss, because often we get a table. Passer should escape XSS!
$output .= '</div>';

$output .= drupal_render($form);
return $output;
}

/**
* Recheck payment status manually
*/
Expand Down

0 comments on commit 43df906

Please sign in to comment.