Skip to content
Snippets Groups Projects
Commit b118a29a authored by Alex Barth's avatar Alex Barth
Browse files

Split author into author_name, author_link, author_email.

parent adb5d787
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,10 @@ class FeedsSimplePieParser extends FeedsParser {
if (empty($item['guid'])) {
$item['guid'] = $item['url'];
}
$item['author'] = $simplepie_item->get_author();
$author = $simplepie_item->get_author();
$item['author_name'] = $author->name;
$item['author_link'] = $author->link;
$item['author_email'] = $author->email;
// Enclosures
$enclosures = $simplepie_item->get_enclosures();
if (is_array($enclosures)) {
......@@ -104,7 +107,9 @@ class FeedsSimplePieParser extends FeedsParser {
return array(
'title' => t('Title'),
'description' => t('Description'),
'author' => t('Author'),
'author_name' => t('Author name'),
'author_link' => t('Author link'),
'author_email' => t('Author email'),
'timestamp' => t('Published date'),
'date_raw' => t('Published date (raw)'),
'url' => t('Item URL (link)'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment