You are here

function google_admanager_admin_settings_form in DFP Small Business (Google Ad Manager) 6

Same name and namespace in other branches
  1. 5 google_admanager.module \google_admanager_admin_settings_form()
  2. 6.3 google_admanager.admin.inc \google_admanager_admin_settings_form()
  3. 6.2 google_admanager.admin.inc \google_admanager_admin_settings_form()
  4. 7.2 google_admanager.admin.inc \google_admanager_admin_settings_form()

Implementation of hook_admin_settings() for configuring the module

2 string references to 'google_admanager_admin_settings_form'
google_admanager_form_alter in ./google_admanager.module
Implementation of hook_form_alter().
google_admanager_menu in ./google_admanager.module
Implementing hook_menu

File

./google_admanager.module, line 166

Code

function google_admanager_admin_settings_form() {
  $form = array();
  $form['google_admanager_account'] = array(
    '#type' => 'textfield',
    '#title' => t('DFP Property Code'),
    '#default_value' => variable_get('google_admanager_account', 'ca-pub-'),
    '#size' => 30,
    '#maxlength' => 40,
    '#required' => TRUE,
    '#description' => t('See detailed instruction in README.txt'),
  );
  $form['google_admanager_ad_slots'] = array(
    '#type' => 'textarea',
    '#title' => t('Ad slots'),
    '#default_value' => variable_get('google_admanager_ad_slots', ''),
    '#description' => t('Enter one Ad Slot name per line.'),
  );
  $form['google_admanager_noblock'] = array(
    '#type' => 'checkbox',
    '#title' => t('Don\'t create blocks'),
    '#default_value' => variable_get('google_admanager_noblock', FALSE),
    '#description' => t('This option allow you to use only superslot. Handful when you have dozens of ad slots or more. <strong>Switch on/off this option may reset blocks positions.</strong>'),
  );
  $form['google_admanager_lazy'] = array(
    '#type' => 'checkbox',
    '#title' => t('Lazy loading'),
    '#default_value' => variable_get('google_admanager_lazy', FALSE),
    '#description' => t('(Experimental) Insert DFP code before &lt;/body&gt; instead of in header (not work with inline ad). Read more in README.txt'),
  );
  return system_settings_form($form);
}