You are here

function price_theme in Price 2.0.x

Same name and namespace in other branches
  1. 8 price.module \price_theme()
  2. 3.x price.module \price_theme()
  3. 2.x price.module \price_theme()
  4. 3.0.x price.module \price_theme()

Implements hook_theme().

File

./price.module, line 33
Defines the functionalities for the 'price' module.

Code

function price_theme() {
  return [
    'price_plain' => [
      'variables' => [
        'number' => 0,
        'currency' => NULL,
      ],
      'template' => 'price-plain',
    ],
    'price_calculated' => [
      'variables' => [
        'calculated_price' => NULL,
        'entity' => NULL,
      ],
    ],
  ];
}