Index: sites/all/modules/simplefeed/simplefeed_item_views.inc =================================================================== --- sites/all/modules/simplefeed/simplefeed_item_views.inc (revision 903) +++ sites/all/modules/simplefeed/simplefeed_item_views.inc (working copy) @@ -61,7 +61,7 @@ 'help' => t('Filter by the default expiration date for a feed item. ') .' '. views_t_strings('filter date'), ), 'fid' => array( - 'name' => t('SimpleFeed Feed Item: Parent Feed Node ID'), + 'name' => t('SimpleFeed Feed Item: Parent Feed'), 'list' => 'views_handler_filter_simplefeed_parent', 'operator' => 'views_handler_operator_andor', 'help' => t('This allows you to filter feed items based on parent feed.'), @@ -111,9 +111,9 @@ function simplefeed_item_views_arguments() { $arguments = array( 'feed_parent' => array( - 'name' => t('SimpleFeed Feed Item: Parent Feed Node ID'), + 'name' => t('SimpleFeed Feed Item: Parent Feed'), 'handler' => 'views_handler_arg_simplefeed_parent', - 'help' => t('This argument will find all feed items for the specified feed node id.'), + 'help' => t('This argument will find all feed items for the specified feed.'), ), ); return $arguments; @@ -125,9 +125,9 @@ */ function views_handler_filter_simplefeed_parent() { $parents = array(); - $result = db_query("SELECT DISTINCT fid FROM {simplefeed_feed_item} ORDER BY fid"); + $result = db_query("SELECT DISTINCT {node}.nid, title FROM {simplefeed_feed} LEFT OUTER JOIN {node} ON {simplefeed_feed}.nid={node}.nid ORDER BY title"); while ($obj = db_fetch_object($result)) { - $parents[$obj->fid] = "$obj->fid"; + $parents[$obj->nid] = $obj->title; } return $parents; }