You are here

function theme_commerce_payment_transaction_status_icon in Commerce Core 7

Themes the icon representing a payment transaction status.

1 theme call to theme_commerce_payment_transaction_status_icon()
commerce_payment_handler_field_status::render in modules/payment/includes/views/handlers/commerce_payment_handler_field_status.inc
Render the field.

File

modules/payment/commerce_payment.module, line 834
Defines the payment system and checkout integration.

Code

function theme_commerce_payment_transaction_status_icon($variables) {
  $transaction_status = $variables['transaction_status'];
  return theme('image', array(
    'path' => $transaction_status['icon'],
    'alt' => $transaction_status['title'],
    'title' => $transaction_status['title'],
    'attributes' => array(
      'class' => array(
        drupal_html_class($transaction_status['status']),
      ),
    ),
  ));
}