function classified_insert in Classified Ads 6.3
Same name and namespace in other branches
- 7.3 classified.module \classified_insert()
Implements hook_insert().
1 call to classified_insert()
- classified_update in ./
classified.module - Implements hook_update().
File
- ./
classified.module, line 1056 - A pure D6 classified ads module inspired by the ed_classified module.
Code
function classified_insert($node) {
$ret = drupal_write_record('classified_node', $node);
if ($ret === FALSE) {
watchdog('classified', 'Error inserting ad @title', array(
'@title' => $node->title,
), WATCHDOG_ERROR);
}
else {
cache_clear_all('classified:overview', 'cache');
}
}