summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTiaan Geldenhuys2013-08-31 15:34:24 (GMT)
committer Tiaan Geldenhuys2013-08-31 15:34:24 (GMT)
commitf5783c0dd390a6266aa806d076c9c9abb0e31244 (patch)
treea1b5a74e507f30db98cfa2bbc3cb01b7d08dd4f6
parent53c10135467c758aa2bbfd22197842bf8f0ac4f9 (diff)
Add missing keys for JSON params involving downloader images.
-rwxr-xr-xunity3d_field.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/unity3d_field.module b/unity3d_field.module
index e18fce8..2d9a410 100755
--- a/unity3d_field.module
+++ b/unity3d_field.module
@@ -345,13 +345,13 @@ function unity3d_field_preprocess_unity3d_field(&$variables, $hook) {
'textcolor' => $variables['settings']['unity3d_field_textcolor'],
);
if (strlen($variables['settings']['unity3d_field_logoimage']) > 0) {
- $params[] = $variables['settings']['unity3d_field_logoimage'];
+ $params['logoimage'] = $variables['settings']['unity3d_field_logoimage'];
}
if (strlen($variables['settings']['unity3d_field_progressbarimage']) > 0) {
- $params[] = $variables['settings']['unity3d_field_progressbarimage'];
+ $params['progressbarimage'] = $variables['settings']['unity3d_field_progressbarimage'];
}
if (strlen($variables['settings']['unity3d_field_progressframeimage']) > 0) {
- $params[] = $variables['settings']['unity3d_field_progressframeimage'];
+ $params['progressframeimage'] = $variables['settings']['unity3d_field_progressframeimage'];
}
$params = drupal_json_encode($params);