You are here

function feeds_tests_files in Feeds 7.2

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

Outputs a CSV file pointing to files.

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

File

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

Code

function feeds_tests_files() {
  $images = array(
    0 => "tubing.jpeg",
    1 => "foosball.jpeg",
    2 => "attersee.jpeg",
    3 => "hstreet.jpeg",
    4 => "la fayette.jpeg",
  );
  foreach ($images as &$image) {
    $image = "public://images/{$image}";
  }
  drupal_add_http_header('Content-Type', 'text/plain; charset=utf-8');
  print theme('feeds_tests_files', array(
    'files' => $images,
  ));
}