You are here

function feeds_views_handler_field_source::render in Feeds 6

Same name and namespace in other branches
  1. 8.2 views/feeds_views_handler_field_source.inc \feeds_views_handler_field_source::render()
  2. 7.2 views/feeds_views_handler_field_source.inc \feeds_views_handler_field_source::render()
  3. 7 views/feeds_views_handler_field_source.inc \feeds_views_handler_field_source::render()

Override parent::render().

File

views/feeds_views_handler_field_source.inc, line 13
Views handler for showing a feeds source config field.

Class

feeds_views_handler_field_source
@file Views handler for showing a feeds source config field.

Code

function render($values) {
  $value = unserialize($values->{$this->field_alias});
  if (isset($value['FeedsHTTPFetcher']['source'])) {
    return check_url($value['FeedsHTTPFetcher']['source']);
  }
  elseif (isset($value['FeedsFileFetcher']['feeds_source'])) {

    // @todo This is untested.
    return $GLOBALS['base_url'] . '/' . check_plain($value['FeedsFileFetcher']['feeds_source']);
  }
  return '';
}