You are here

function ad_weight_percent_menu in Advertisement 5.2

Same name and namespace in other branches
  1. 5 weight/percent/ad_weight_percent.module \ad_weight_percent_menu()
  2. 6.3 weight/percent/ad_weight_percent.module \ad_weight_percent_menu()
  3. 6 weight/percent/ad_weight_percent.module \ad_weight_percent_menu()
  4. 6.2 weight/percent/ad_weight_percent.module \ad_weight_percent_menu()
  5. 7 weight/percent/ad_weight_percent.module \ad_weight_percent_menu()

Drupal hook_menu().

File

weight/percent/ad_weight_percent.module, line 15
A plug in for the ad.module, providing a percentage based weighting mechanism for the random selection of ads.

Code

function ad_weight_percent_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/content/ad/groups/percent',
      'title' => t('Weight Percent'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'ad_weight_percent_settings',
      ),
      'type' => MENU_LOCAL_TASK,
      'weight' => 5,
    );
  }
  return $items;
}