function _discussthis_set_forum in Discuss This! 5
Same name and namespace in other branches
- 6 discussthis.module \_discussthis_set_forum()
- 7.2 discussthis.node.inc \_discussthis_set_forum()
- 7 discussthis.node.inc \_discussthis_set_forum()
Store a mapping between the given nid and a forum tid
1 call to _discussthis_set_forum()
- 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…
File
- ./
discussthis.module, line 553
Code
function _discussthis_set_forum($nid, $tid) {
$sql = 'REPLACE INTO {discussthis_forums} (nid,forum_tid) VALUES (%d,%d)';
db_query($sql, $nid, $tid);
}