uc_credit.theme.inc 640 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * @file
  4. * Theme functions for the uc_credit module.
  5. */
  6. /**
  7. * Themes the credit card CVV help link.
  8. */
  9. function theme_uc_credit_cvv_help($variables) {
  10. $output = '<div class="uc-credit-cvv-help">';
  11. $output .= theme('image', array('path' => drupal_get_path('module', 'uc_credit') . '/images/info.png'));
  12. $output .= ' ' . l(t("What's the CVV?"), 'cart/checkout/credit/cvv_info', array('attributes' => array(
  13. 'onclick' => "window.open(this.href, 'CVV_Info', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=480,height=460'); return false;",
  14. )));
  15. $output .= '</div>';
  16. return $output;
  17. }