function ed_classified_ad_expired in Classified Ads 6.2
Same name and namespace in other branches
- 5.2 ed_classified_utils.inc \ed_classified_ad_expired()
- 5 ed_classified_utils.inc \ed_classified_ad_expired()
- 7.2 ed_classified_utils.inc \ed_classified_ad_expired()
Determine whether a node is expired given a target timestamp.
An ad is considered to have 'expired' if the $time parameter is larger than the node's expires_on field.
1 call to ed_classified_ad_expired()
- ed_classified_admin_overview in ./
ed_classified.module - Present admin options.
File
- ./
ed_classified_utils.inc, line 483 - Simple text-based classified ads module.
Code
function ed_classified_ad_expired($node, $time) {
if ($node->type != EDI_CLASSIFIED_MODULE_NAME) {
return FALSE;
}
return $time >= $node->expires_on;
}