function adsense_basic_settings in Google AdSense integration 5.2
1 call to adsense_basic_settings()
File
- ./
adsense_basic.module, line 27
Code
function adsense_basic_settings() {
// We only load the help text if we are in settings, to save memory
$module = 'adsense_basic';
include_once drupal_get_path('module', $module) . '/' . $module . '_help.inc';
$function = $module . '_adsense';
$error_flag = $function('status');
$form['help'] = array(
'#type' => 'fieldset',
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#title' => t('Help and instructions'),
);
$help_function = $module . '_help_text';
$form['help']['help'] = array(
'#type' => 'markup',
'#value' => $help_function(),
);
$form[ADSENSE_BASIC_ID] = array(
'#type' => 'textfield',
'#title' => t('Google AdSense client ID'),
'#required' => TRUE,
'#default_value' => variable_get(ADSENSE_BASIC_ID, ''),
'#description' => t('This is the Google AdSense Client ID for the site owner. You should get this from your Google Adsense account. It should be similar to <em>pub-9999999999999</em>.'),
);
return $form;
}