From: Jason Skomorowski Date: Wed, 30 Mar 2011 04:32:54 +0000 (+0000) Subject: Nits X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=deb78c3383bd7ea1f9af782613c1007c14ea4763;p=mkdru-moved-to-drupal.org.git Nits --- diff --git a/mkdru.module b/mkdru.module index caf1341..9610cd0 100644 --- a/mkdru.module +++ b/mkdru.module @@ -138,7 +138,7 @@ function mkdru_settings_form(&$form_state) { 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 { @@ -328,7 +328,7 @@ function mkdru_ding_settings(&$form_state) { 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.')); }