function _discussthis_set_tid in Discuss This! 5
Store a mapping between the given nid and a forum topic (by tid)
2 calls to _discussthis_set_tid()
- discussthis_nodeapi in ./
discussthis.module - hook_nodeapi implementation This is the meat of the module. Here we add the Discuss This link which will create a new forum topic if none exists, or link to the existing one if it does. Also adds forum override dropdown on add/edit screen for users…
- _discussthis_set_topic in ./
discussthis.module - Store a mapping between the given nid and a forum topic (by topic)
File
- ./
discussthis.module, line 600
Code
function _discussthis_set_tid($nid, $topic_nid) {
$sql = 'REPLACE INTO {discussthis} (nid,topic_nid) VALUES (%d,%d)';
db_query($sql, $nid, $topic_nid);
}