function amazon_theme in Amazon Product Advertisement API 7.2
Same name and namespace in other branches
- 8.2 amazon.module \amazon_theme()
- 6 amazon.module \amazon_theme()
- 7 amazon.module \amazon_theme()
Implementation of hook_theme().
1 call to amazon_theme()
- amazon_test_templates_page_callback in tests/
amazon_test.module - Menu callback for testing templates.
File
- ./
amazon.module, line 76
Code
function amazon_theme() {
$templates = array(
'amazon_item' => array(
'variables' => array(
'item' => array(),
'style' => NULL,
),
'template' => 'amazon-item',
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
'amazon_inline_item' => array(
'variables' => array(
'item' => array(),
),
'template' => 'amazon-item--inline',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
'amazon_detail' => array(
'variables' => array(
'item' => array(),
'detail' => NULL,
),
'template' => 'amazon-detail',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
// Test
'amazon_item__test' => array(
'variables' => array(
'item' => array(),
'detail' => NULL,
),
'template' => 'amazon-item--test',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
// Default :: Gallery
'amazon_item__default_gallery' => array(
'variables' => array(
'item' => array(),
'style' => NULL,
),
'template' => 'amazon-item--default-gallery',
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
// All templates provided at the module level have to be explicitly listed.
'amazon_item__details' => array(
'variables' => array(
'item' => array(),
),
'template' => 'amazon-item--details',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
'amazon_item__details_gallery' => array(
'variables' => array(
'item' => array(),
),
'template' => 'amazon-item--details-gallery',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
'amazon_item__default' => array(
'variables' => array(
'item' => array(),
),
'template' => 'amazon-item',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
// Thumbnail Images
'amazon_item__thumbnail' => array(
'variables' => array(
'item' => array(),
),
'template' => 'amazon-item--thumbnail',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
'amazon_item__thumbnail_gallery' => array(
'variables' => array(
'item' => array(),
),
'template' => 'amazon-item--thumbnail-gallery',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
// Medium Images
'amazon_item__medium' => array(
'variables' => array(
'item' => array(),
),
'template' => 'amazon-item--medium',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
'amazon_item__medium_gallery' => array(
'variables' => array(
'item' => array(),
),
'template' => 'amazon-item--medium-gallery',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
// Large Images
'amazon_item__large' => array(
'variables' => array(
'item' => array(),
),
'template' => 'amazon-item--large',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
'amazon_item__large_gallery' => array(
'variables' => array(
'item' => array(),
),
'template' => 'amazon-item--large-gallery',
'preprocess functions' => array(
'template_preprocess_amazon_item',
),
'path' => drupal_get_path('module', 'amazon') . '/templates',
),
);
return $templates;
}