function feeds_tests_files_empty_alt_title in Feeds 7.2
Outputs a CSV file pointing to files without alt/title.
This is used to test if alt/title attributes are removed on a second import.
1 string reference to 'feeds_tests_files_empty_alt_title'
- feeds_tests_menu in tests/
feeds_tests.module - Implements hook_menu().
File
- tests/
feeds_tests.module, line 239 - Helper module for Feeds tests.
Code
function feeds_tests_files_empty_alt_title() {
$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_empty', array(
'files' => $images,
));
}