function classified_load in Classified Ads 6.3
Same name and namespace in other branches
- 7.3 classified.module \classified_load()
Implements hook_load().
File
- ./
classified.module, line 1071 - A pure D6 classified ads module inspired by the ed_classified module.
Code
function classified_load($node) {
if (!empty($node->vid)) {
$sq = 'SELECT cn.expires, cn.notify FROM {classified_node} cn WHERE cn.vid = %d';
$extra = db_fetch_array(db_query($sq, $node->vid));
$node->expires = $extra['expires'];
$node->notify = $extra['notify'];
$node->expire_mode = 'node';
}
}