function _ed_classified_purge_ad in Classified Ads 6.2
Same name and namespace in other branches
- 5.2 ed_classified_delete.inc \_ed_classified_purge_ad()
- 5 ed_classified_delete.inc \_ed_classified_purge_ad()
- 7.2 ed_classified_delete.inc \_ed_classified_purge_ad()
"purge" an expired ad.
(This will delete a classified ad that has been 'expired' and is older than the threshold)
1 call to _ed_classified_purge_ad()
- _ed_classified_purge_ads in ./
ed_classified_delete.inc - Purge old ads (must have been expired - IOW, unpublished - first.)
File
- ./
ed_classified_delete.inc, line 77 - Node deletion facilities.
Code
function _ed_classified_purge_ad($node) {
if (_ed_classified_variable_get('log_deletions', FALSE)) {
$expired = _ed_classified_get_ending_date_string($node->expires_on);
_edi_wd(t('Purging ad @title (nid=!nid) which @expired', array(
'@title' => $node->title,
'!nid' => $node->nid,
'@expired' => $expired,
)));
}
_ed_classified_delete($node->nid);
}