function google_admanager_admin_settings_form in DFP Small Business (Google Ad Manager) 5
Same name and namespace in other branches
- 6.3 google_admanager.admin.inc \google_admanager_admin_settings_form()
- 6 google_admanager.module \google_admanager_admin_settings_form()
- 6.2 google_admanager.admin.inc \google_admanager_admin_settings_form()
- 7.2 google_admanager.admin.inc \google_admanager_admin_settings_form()
Implementation of hook_admin_settings() for configuring the module
1 string reference to 'google_admanager_admin_settings_form'
- google_admanager_menu in ./
google_admanager.module - Implementing hook_menu
File
- ./
google_admanager.module, line 66
Code
function google_admanager_admin_settings_form() {
$form['google_admanager_account'] = array(
'#type' => 'textfield',
'#title' => t('Google Admanager account number'),
'#default_value' => variable_get('google_admanager_account', 'ca-pub-'),
'#size' => 30,
'#maxlength' => 40,
'#required' => TRUE,
'#description' => t('You can obtain a user account under the <strong>Admin</strong> tab on the <a href="@url">Google Admanager</a> website.', array(
'@url' => 'https://www.google.com/admanager/',
)),
);
$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.'),
);
return system_settings_form($form);
}