function locationmap_admin_settings_submit in Location Map 8.2
Submit function for locationmap_admin_settings
_state
Parameters
$form:
1 string reference to 'locationmap_admin_settings_submit'
- locationmap_admin_settings in ./
locationmap.admin.inc - Callback for admin settings page
File
- ./
locationmap.admin.inc, line 181
Code
function locationmap_admin_settings_submit($form, $form_state) {
$config = config('locationmap.settings');
$config
->set('title', $form_state['values']['title'])
->set('address', $form_state['values']['address'])
->set('type', $form_state['values']['type'])
->set('zoom', $form_state['values']['zoom'])
->set('width', $form_state['values']['width'])
->set('height', $form_state['values']['height'])
->set('latitude', $form_state['values']['latitude'])
->set('longitude', $form_state['values']['longitude'])
->set('info.value', $form_state['values']['info']['value'])
->set('info.format', $form_state['values']['info']['format'])
->set('body.value', $form_state['values']['body']['value'])
->set('body.format', $form_state['values']['body']['format'])
->set('footer.value', $form_state['values']['footer']['value'])
->set('footer.format', $form_state['values']['footer']['format'])
->save();
}