function staticmap_settings_form in Static Map 7
Settings form for StaticMap.
Return value
mixed Settings form.
1 string reference to 'staticmap_settings_form'
- staticmap_menu in ./
staticmap.module - Implements hook_menu().
File
- ./
staticmap.module, line 54 - SiteMap module.
Code
function staticmap_settings_form() {
$form = array();
$form['staticmap_google_premier'] = array(
'#type' => 'textfield',
'#title' => t('Google Premier Client ID'),
'#default_value' => variable_get('staticmap_google_premier', ''),
);
$form['staticmap_google_api_key'] = array(
'#type' => 'textfield',
'#title' => t('Google API Key'),
'#description' => t('All Static Maps API applications should use an API key. Note: Maps for Business users must include client and signature parameters with their requests instead of a key.'),
'#default_value' => variable_get('staticmap_google_api_key', ''),
);
return system_settings_form($form);
}