You are here

function amazon_test_templates_page_callback in Amazon Product Advertisement API 7.2

Menu callback for testing templates.

1 string reference to 'amazon_test_templates_page_callback'
amazon_test_menu in tests/amazon_test.module
Implements hook_menu().

File

tests/amazon_test.module, line 34
Contains amazon_test.module.

Code

function amazon_test_templates_page_callback() {
  $markup = '';
  $items = amazon_test_get_amazon_items();
  $styles = array_keys(amazon_theme());
  foreach ($styles as $style) {
    $markup .= $style . theme('amazon_item', array(
      'item' => $items[0],
      'style' => str_replace('amazon_item__', '', $style),
    ));
  }
  return $markup;
}