You are here

function ad_channel_admin_settings in Advertisement 5.2

Same name and namespace in other branches
  1. 6.3 channel/ad_channel.module \ad_channel_admin_settings()
  2. 6.2 channel/ad_channel.module \ad_channel_admin_settings()
  3. 7 channel/ad_channel.module \ad_channel_admin_settings()

Settings form.

1 string reference to 'ad_channel_admin_settings'
ad_channel_menu in channel/ad_channel.module
Implementation of hook_menu.

File

channel/ad_channel.module, line 249
Ad Channel

Code

function ad_channel_admin_settings() {
  $form = array();
  $form['ad_channel_display'] = array(
    '#type' => 'radios',
    '#title' => t('Display advertisements not assigned to any channel'),
    '#options' => array(
      t('Only if no matching advertisements are found in the active channels'),
      t('Always'),
      t('Never'),
    ),
    '#default_value' => variable_get('ad_channel_display', 0),
    '#description' => t('By default, advertisements will first be selected out of the active channels, and if none are found they will be selected out of advertisements not assigned to any channel.  If you select "Always", advertisements will be selected out of the active channels and from advertisements not assigned to any channels.  If you select "Never", advertisements will only be selected out of the active channels, and advertisements not assigned to any channel will not ever be displayed.'),
  );
  return system_settings_form($form);
}