function feeds_tests_files_remote in Feeds 8.2
Same name and namespace in other branches
- 7.2 tests/feeds_tests.module \feeds_tests_files_remote()
Outputs a CSV file pointing to files to download.
1 string reference to 'feeds_tests_files_remote'
- feeds_tests_menu in tests/
feeds_tests.module - Implements hook_menu().
File
- tests/
feeds_tests.module, line 90 - Helper module for Feeds tests.
Code
function feeds_tests_files_remote() {
$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', 'text/plain; charset=utf-8');
print theme('feeds_tests_files', array(
'files' => $images,
));
die;
}