You are here

function media_feeds_test_feed in Media Feeds 7

Outputs a sample CSV file.

1 string reference to 'media_feeds_test_feed'
media_feeds_test_menu in tests/media_feeds_test.module
Implements hook_menu().

File

tests/media_feeds_test.module, line 28
Serve static files for Media Feeds testing.

Code

function media_feeds_test_feed() {
  drupal_add_http_header('Content-Type', 'text/plain; charset=utf-8');
  $url = url('testing/media_feeds/sample.png', array(
    'absolute' => TRUE,
  ));
  print <<<CSV
title,published,file,GUID
"Drupal Logo",205200720,{<span class="php-variable">$url</span>},0
CSV;
}