Skip to content

Instantly share code, notes, and snippets.

@laurelstreng
Created September 22, 2016 14:14
Show Gist options
  • Save laurelstreng/87dd24a42bb2980351fa2f34a1ad0c80 to your computer and use it in GitHub Desktop.
Save laurelstreng/87dd24a42bb2980351fa2f34a1ad0c80 to your computer and use it in GitHub Desktop.
Drupal 7 - Theme Settings Fieldset (group) of Fields
function THEMENAME_form_system_theme_settings_alter(&$form, $form_state, $form_id = NULL){
// Set up the a fieldset (group) for general information
$form['general_info'] = array(
'#type' => 'fieldset',
'#title' => t('General Information'),
'#description' => t('General contact information for Duke Health & Fitness Center.'),
);
$form['general_info']['address'] = array(
'#type' => 'textfield',
'#title' => t('Address'),
'#default_value' => 'Raleigh, NC 27705',
);
$form['general_info']['phone_number'] = array(
'#type' => 'textfield',
'#title' => t('Phone Number'),
'#default_value' => '919-999-9191',
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment