function _ad_channel_delete_node in Advertisement 7
Same name and namespace in other branches
- 5.2 channel/ad_channel.module \_ad_channel_delete_node()
- 6.3 channel/ad_channel.module \_ad_channel_delete_node()
- 6.2 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 721 - Ad Channel module.
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);
}
}