Create an alternative parser for aggregator module.
A parser converts feed item data to a common format. The parser is called at the second of the three aggregation stages: first, data is downloaded by the active fetcher; second, it is converted to a common format by the active parser; and finally, it is passed to all active processors which manipulate or store the data.
Modules that define this hook can be set as the active parser within the configuration page. Only one parser can be active at a time.
$feed: An object describing the resource to be parsed. $feed->source_string contains the raw feed data. The hook implementation should parse this data and add the following properties to the $feed object:
TRUE if parsing was successful, FALSE otherwise.
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
function hook_aggregator_parse($feed) {
if ($items = mymodule_parse($feed->source_string)) {
$feed->items = $items;
return TRUE;
}
return FALSE;
}