function _ad_weight_probability_weights in Advertisement 6.2
Same name and namespace in other branches
- 5.2 weight/probability/ad_weight_probability.module \_ad_weight_probability_weights()
- 6.3 weight/probability/ad_weight_probability.module \_ad_weight_probability_weights()
- 7 weight/probability/ad_weight_probability.module \_ad_weight_probability_weights()
Available weight probabilities.
1 call to _ad_weight_probability_weights()
- ad_weight_probability_form_alter in weight/
probability/ ad_weight_probability.module - Implementation of hook_form_alter(). Generate a form for assigning a weight to an advertisement.
File
- weight/
probability/ ad_weight_probability.module, line 134 - 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_weights() {
return array(
25 => t('1/4'),
33 => t('1/3'),
50 => t('1/2'),
100 => t('1'),
200 => t('2'),
300 => t('3'),
400 => t('4'),
);
}