From b118a29a95cf5410299edc1cde143119776d980e Mon Sep 17 00:00:00 2001 From: Alex Barth <alex_b@53995.no-reply.drupal.org> Date: Mon, 2 Nov 2009 19:48:15 +0000 Subject: [PATCH] Split author into author_name, author_link, author_email. --- plugins/FeedsSimplePieParser.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/FeedsSimplePieParser.inc b/plugins/FeedsSimplePieParser.inc index 4f6278a9..227996ed 100644 --- a/plugins/FeedsSimplePieParser.inc +++ b/plugins/FeedsSimplePieParser.inc @@ -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)'), -- GitLab