From 2d59c2185252e78c28eee2f778e5893e5fc78c57 Mon Sep 17 00:00:00 2001 From: Jason Skomorowski Date: Tue, 22 Mar 2011 05:49:04 +0000 Subject: [PATCH] Remove debug output and fix variable_get() call --- mkdru.module | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mkdru.module b/mkdru.module index fd6a4cd..24e36c2 100644 --- a/mkdru.module +++ b/mkdru.module @@ -30,7 +30,7 @@ function mkdru_ting_search_tab($keys) { $html = theme('mkdru_results'); drupal_add_js(array('mkdru' => array( - 'settings' => variable_get('mkdru_ding'), + 'settings' => json_encode(variable_get('mkdru_ding', NULL)), 'pz2_path' => variable_get('pz2_path', '/pazpar2/search.pz2'), 'query' => $keys ) @@ -105,7 +105,6 @@ function mkdru_init() { // Config form common to node and settings // function mkdru_settings_form($form, &$form_state) { function mkdru_settings_form(&$form_state) { -// dpm($form_state); if (isset($form_state['values']['settings'])) { $settings = $form_state['build_info']['args']['settings']; } @@ -247,7 +246,6 @@ function mkdru_ding_settings(&$form_state) { return $form; } function mkdru_ding_settings_submit($form, &$form_state) { - dpm($form_state); variable_set('mkdru_ding', $form_state[values][settings]); drupal_set_message(t('The configuration options have been saved.')); } -- 1.7.10.4