function feeds_tests_feeds_prevalidate in Feeds 7.2
Implements hook_feeds_prevalidate().
See also
FeedsHooksTestCase::testPrevalidateHook()
File
- tests/
feeds_tests.feeds.inc, line 13 - Feeds hooks implementations.
Code
function feeds_tests_feeds_prevalidate(FeedsSource $source, $entity, $item, $entity_id) {
if (!variable_get('feeds_tests_hook_feeds_prevalidate', FALSE)) {
return;
}
// Keep track of results so far.
$results = variable_get('feeds_tests_hook_feeds_prevalidate_results', array());
$results[] = array(
'importer_id' => $source->importer->id,
'title' => $entity->title,
'item_guid' => $item['guid'],
'entity_id' => $entity_id,
);
variable_set('feeds_tests_hook_feeds_prevalidate_results', $results);
}