Commit 9faa7710 authored by lyricnz's avatar lyricnz
Browse files

Provide explicit weights for cache/metadata fieldsets on the config form, to...

Provide explicit weights for cache/metadata fieldsets on the config form, to make it easier for form_alter this form
parent b3c452da
......@@ -53,6 +53,7 @@ function geonames_admin_settings() {
'#title' => t('Cache'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => 15,
);
$form['cache']['clear_cache'] = array(
'#type' => 'markup',
......@@ -96,6 +97,7 @@ function geonames_admin_settings() {
'#title' => t('Metadata - Incomplete'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#weight' => 20,
);
}
else {
......@@ -104,6 +106,7 @@ function geonames_admin_settings() {
'#title' => t('Metadata'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'#weight' => 20,
);
}
......@@ -128,7 +131,8 @@ function geonames_admin_settings() {
'!theirsitelink' => l(t('their site'), 'http://www.geonames.org/'), // should be translated
'!cclink' => l(t('Creative Commons Attribution Licence 3.0'), 'http://creativecommons.org/licenses/by/3.0/'),
)),
'#suffix' => '</div>'
'#suffix' => '</div>',
'#weight' => 21,
);
return system_settings_form($form);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment