You are here

function theme_paypal_ec_mark_image in Commerce PayPal 7.2

Returns a themed PayPal mark image.

1 theme call to theme_paypal_ec_mark_image()
commerce_paypal_ec_form_alter in modules/ec/commerce_paypal_ec.module
Implements hook_form_alter().

File

modules/ec/commerce_paypal_ec.module, line 1635
Implements PayPal Express Checkout in Drupal Commerce checkout.

Code

function theme_paypal_ec_mark_image() {
  $variables = array(
    'path' => commerce_paypal_ec_mark_url(),
    'title' => t('Pay with PayPal'),
    'alt' => t('Pay with PayPal'),
    'attributes' => array(
      'class' => array(
        'commerce-paypal-ec-icon',
      ),
    ),
  );
  return '<span class="commerce-paypal-ec-icon-wrapper">' . theme('image', $variables) . '</span>';
}