You are here

function _ad_weight_probability_node_delete in Advertisement 6.3

Same name and namespace in other branches
  1. 5.2 weight/probability/ad_weight_probability.module \_ad_weight_probability_node_delete()
  2. 6.2 weight/probability/ad_weight_probability.module \_ad_weight_probability_node_delete()
  3. 7 weight/probability/ad_weight_probability.module \_ad_weight_probability_node_delete()

Helper function, delete the probability from the database.

1 call to _ad_weight_probability_node_delete()
ad_weight_probability_nodeapi in weight/probability/ad_weight_probability.module
Implementation of hook_nodeapi().

File

weight/probability/ad_weight_probability.module, line 127
A plug in for the ad.module, allowing an admin to set the probability that a given advertisement will be displayed.

Code

function _ad_weight_probability_node_delete($node) {
  db_query('DELETE FROM {ad_weight_probability} WHERE aid = %d', $node->nid);
}