function feeds_format_expire in Feeds 7.2
Same name and namespace in other branches
- 8.2 feeds.module \feeds_format_expire()
- 6 includes/FeedsImporter.inc \feeds_format_expire()
- 7 includes/FeedsImporter.inc \feeds_format_expire()
Formats a time interval.
Parameters
int $timestamp: The length of the interval in seconds.
Return value
string A translated string representation of the interval.
1 string reference to 'feeds_format_expire'
- FeedsNodeProcessor::configForm in plugins/
FeedsNodeProcessor.inc - Override parent::configForm().
File
- includes/
FeedsImporter.inc, line 423 - 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),
));
}