You are here

function feeds_format_expire in Feeds 7

Same name and namespace in other branches
  1. 8.2 feeds.module \feeds_format_expire()
  2. 6 includes/FeedsImporter.inc \feeds_format_expire()
  3. 7.2 includes/FeedsImporter.inc \feeds_format_expire()

Helper, see FeedsDataProcessor class.

1 string reference to 'feeds_format_expire'
FeedsNodeProcessor::configForm in plugins/FeedsNodeProcessor.inc
Override parent::configForm().

File

includes/FeedsImporter.inc, line 280
FeedsImporter class and related.

Code

function feeds_format_expire($timestamp) {
  if ($timestamp == FEEDS_EXPIRE_NEVER) {
    return t('Never');
  }
  return t('after !time', array(
    '!time' => format_interval($timestamp),
  ));
}