You are here

function feeds_tests_flickr in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 tests/feeds_tests.module \feeds_tests_flickr()

Outputs flickr test feed.

1 string reference to 'feeds_tests_flickr'
feeds_tests_menu in tests/feeds_tests.module
Implements hook_menu().

File

tests/feeds_tests.module, line 181
Helper module for Feeds tests.

Code

function feeds_tests_flickr() {
  $images = array(
    0 => "tubing.jpeg",
    1 => "foosball.jpeg",
    2 => "attersee.jpeg",
    3 => "hstreet.jpeg",
    4 => "la fayette.jpeg",
  );
  $path = drupal_get_path('module', 'feeds_tests') . '/feeds/assets';
  foreach ($images as &$image) {
    $image = file_create_url("{$path}/{$image}");
  }
  drupal_add_http_header('Content-Type', 'application/rss+xml; charset=utf-8');
  print theme('feeds_tests_flickr', array(
    'image_urls' => $images,
  ));
}