function weather_admin_main_page_form in Weather 7
Same name and namespace in other branches
- 7.3 weather.forms.inc \weather_admin_main_page_form()
- 7.2 weather.forms.inc \weather_admin_main_page_form()
Construct a form for general settings of the Weather module
1 string reference to 'weather_admin_main_page_form'
- weather_admin_main_page in ./
weather.forms.inc - Show an overview of configured displays and the default display.
File
- ./
weather.forms.inc, line 68 - Provide forms for configuration of weather displays.
Code
function weather_admin_main_page_form() {
$form['weather_image_directory'] = array(
'#type' => 'textfield',
'#title' => t('Directory for custom images'),
'#description' => t('Override the default image directory. This directory must be a subdirectory of the Drupal \'files\' path.'),
'#default_value' => variable_get('weather_image_directory', ''),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save configuration'),
);
return $form;
}