function ed_classified_insert in Classified Ads 6.2
Same name and namespace in other branches
- 5.2 ed_classified.module \ed_classified_insert()
- 5 ed_classified.module \ed_classified_insert()
- 7.2 ed_classified.module \ed_classified_insert()
Implements hook_insert().
1 call to ed_classified_insert()
- ed_classified_update in ./
ed_classified.module - Implements hook_update().
File
- ./
ed_classified.module, line 867 - Simple text-based classified ads module.
Code
function ed_classified_insert($node) {
db_query("INSERT INTO {edi_classified_nodes} (vid, nid, expires_on) VALUES (%d, %d, %d)", $node->vid, $node->nid, $node->expires_on);
_edi_wd(t(sprintf("Creating Classified Ad with nid '%d' and title ''", $node->nid, $node->title)), WATCHDOG_INFO);
}