From dc3525789648c5c2acd9befd1fd62c8dfb9a5b0c Mon Sep 17 00:00:00 2001 From: Anybody <Julian@Pustkuchen.com> Date: Fri, 13 Jan 2012 21:40:22 +0100 Subject: [PATCH] Fixed default image path. --- jquery_loadinganimation.admin.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery_loadinganimation.admin.inc b/jquery_loadinganimation.admin.inc index c1361be..c6437ae 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'), -- GitLab