queue_script-D7.php

  1. 8.0.x tests/resources/queue_script-D7.php
  2. 7.x tests/resources/queue_script-D7.php
  3. master tests/resources/queue_script-D7.php

File

tests/resources/queue_script-D7.php
View source
  1. <?php
  2. // Create a new feed.
  3. aggregator_save_feed(array(
  4. 'title' => 'test',
  5. 'url' => 'http://drupal.org/project/issues/rss/drupal?categories=All',
  6. 'refresh' => 3600,
  7. 'block' => 5,
  8. ));
  9. // Let cron call DrupalQueue::createItem() for us.
  10. aggregator_cron();