You are here

function commerce_sagepay_theme in Drupal Commerce SagePay Integration 7

Implements hook_theme().

Add a theme function for how card logos will be displayed.

File

./commerce_sagepay.module, line 674

Code

function commerce_sagepay_theme($existing, $type, $theme, $path) {
  return array(
    'commerce_sagepay_card_logos' => array(
      'variables' => array(
        'enabled_cards' => array(),
      ),
    ),
    'commerce_sagepay_card_logo' => array(
      'variables' => array(
        'card' => NULL,
        'name' => NULL,
        'img' => NULL,
        'href' => NULL,
      ),
    ),
  );
}