if (isset($form_state['values']['settings'])) {
$settings = $form_state['values']['settings'];
}
- else if (isset($form_state['build_info']['args']['settings'])) {
+ elseif (isset($form_state['build_info']['args']['settings'])) {
$settings = $form_state['build_info']['args']['settings'];
}
else {
return $form;
}
function mkdru_ding_settings_submit($form, &$form_state) {
- variable_set('mkdru_ding', $form_state[values][settings]);
+ variable_set('mkdru_ding', $form_state['values']['settings']);
drupal_set_message(t('The configuration options have been saved.'));
}