function _ad_channel_delete_node in Advertisement 5.2
Same name and namespace in other branches
- 6.3 channel/ad_channel.module \_ad_channel_delete_node()
- 6.2 channel/ad_channel.module \_ad_channel_delete_node()
- 7 channel/ad_channel.module \_ad_channel_delete_node()
Delete channel information associated with node.
1 call to _ad_channel_delete_node()
- ad_channel_nodeapi in channel/
ad_channel.module - Implementation of hook_nodeapi().
File
- channel/
ad_channel.module, line 298 - Ad Channel
Code
function _ad_channel_delete_node($node) {
if ($node->nid) {
db_query('DELETE FROM {ad_channel_node} WHERE nid = %d', $node->nid);
db_query('DELETE FROM {ad_priority} WHERE aid = %d', $node->nid);
}
}