diff --git a/jquery_loadinganimation.admin.inc b/jquery_loadinganimation.admin.inc index c1361be02f1734325c7c0f321f18d60ee4d47f56..c6437aeb27dbb8a0f5dca7412d1fa3e78405baa1 100644 --- a/jquery_loadinganimation.admin.inc +++ b/jquery_loadinganimation.admin.inc @@ -10,13 +10,13 @@ */ function jquery_loadinganimation_settings_form() { $module_path = drupal_get_path('module', 'jquery_loadinganimation'); + $img_src_default = $module_path . '/images/ajax-loader.gif'; $form['jquery_loadinganimation_img_src'] = array( '#type' => 'textfield', '#title' => t('Loading animation spinner path'), - '#description' => t("The loading animation spinner path to use. Relative to base path."), + '#description' => t("The loading animation spinner path to use. Relative to base path. Default: \"!img_src_default\"", array('!img_src_default' => $img_src_default)), '#required' => TRUE, - '#default_value' => variable_get('commerce_powl_modeluri', - $module_path . '/images/ajax-loader.gif')); + '#default_value' => variable_get('jquery_loadinganimation_img_src', $img_src_default)); $form['jquery_loadinganimation_show_on_ajax'] = array( '#type' => 'checkbox', '#title' => t('Show during AJAX requests'),