function amazon_theme in Amazon Product Advertisement API 6
Same name and namespace in other branches
- 8.2 amazon.module \amazon_theme()
- 7.2 amazon.module \amazon_theme()
- 7 amazon.module \amazon_theme()
Implementation of hook_theme().
File
- ./
amazon.module, line 78
Code
function amazon_theme() {
$templates = array(
'amazon_item' => array(
'arguments' => array(
'item' => array(),
'style' => 'default',
),
'pattern' => 'amazon_item__',
'template' => 'amazon-item',
),
'amazon_inline_item' => array(
'arguments' => array(
'item' => array(),
),
'template' => 'amazon-inline-item',
// Re-use the existing infrastructure.
'preprocess functions' => 'amazon_preprocess_amazon_item',
),
// Allows use of whatever is provided in preprocessed $variables.
'amazon_detail' => array(
'arguments' => array(
'item' => array(),
'detail' => NULL,
),
'template' => 'amazon-item-detail',
'preprocess functions' => array(
'amazon_preprocess_amazon_item',
),
),
);
return $templates;
}