Nits
authorJason Skomorowski <jason@indexdata.com>
Wed, 30 Mar 2011 04:32:54 +0000 (04:32 +0000)
committerJason Skomorowski <jason@indexdata.com>
Wed, 30 Mar 2011 04:32:54 +0000 (04:32 +0000)
mkdru.module

index caf1341..9610cd0 100644 (file)
@@ -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.'));
 }