You are here

function theme_uc_credit_cvv_help in Ubercart 7.3

Same name and namespace in other branches
  1. 8.4 payment/uc_credit/uc_credit.theme.inc \theme_uc_credit_cvv_help()
  2. 6.2 payment/uc_credit/uc_credit.theme \theme_uc_credit_cvv_help()

Themes the credit card CVV help link.

1 theme call to theme_uc_credit_cvv_help()
uc_payment_method_credit_form in payment/uc_credit/uc_credit.module
Displays the credit card details form on the checkout screen.

File

payment/uc_credit/uc_credit.theme.inc, line 11
Theme functions for the uc_credit module.

Code

function theme_uc_credit_cvv_help($variables) {
  $output = '<div class="uc-credit-cvv-help">';
  $output .= theme('image', array(
    'path' => drupal_get_path('module', 'uc_credit') . '/images/info.png',
  ));
  $output .= ' ' . l(t("What's the CVV?"), 'cart/checkout/credit/cvv_info', array(
    'attributes' => array(
      '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;",
    ),
  ));
  $output .= '</div>';
  return $output;
}