You are here

function amazon_test_get_amazon_items in Amazon Product Advertisement API 7.2

Provides an Amazon item for testing.

3 calls to amazon_test_get_amazon_items()
AmazonNodesTest::testFieldFormatters in tests/amazon.nodes.test
Test the field formatters.
amazon_test_install in tests/amazon_test.module
Implements hook_install();
amazon_test_templates_page_callback in tests/amazon_test.module
Menu callback for testing templates.

File

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

Code

function amazon_test_get_amazon_items() {
  $source = drupal_get_path('module', 'amazon_test') . '/amazon_test.json';
  $json = file_get_contents($source);
  return json_decode($json, TRUE);
}