aboutsummaryrefslogtreecommitdiff
path: root/video.module
diff options
context:
space:
mode:
authorHeshan Wanigasooriya <heshanmw@gmail.com>2011-01-13 02:37:51 +0000
committerHeshan Wanigasooriya <heshanmw@gmail.com>2011-01-13 02:37:51 +0000
commitc7474ecfeb5036e568c940b629accd6a3d038b09 (patch)
tree466fade7c89188eeb74ac61aa138e05cbefb9764 /video.module
parentac967cb60f30724dcc908679322271645b8ccfe6 (diff)
downloadvideo-c7474ecfeb5036e568c940b629accd6a3d038b09.tar.gz
video-c7474ecfeb5036e568c940b629accd6a3d038b09.tar.bz2
#1024822 by hadsie. [Patch] Class attribute in forms is an array in D7 and Fatal error: Call to undefined function content_fields() D7
Diffstat (limited to 'video.module')
-rw-r--r--video.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/video.module b/video.module
index 4bb7ad0..3a945dd 100644
--- a/video.module
+++ b/video.module
@@ -530,7 +530,7 @@ function video_widget_element_settings(&$element, &$form_state) {
'#title' => t('Bypass auto conversion'),
'#default_value' => isset($file['data']['bypass_autoconversion']) ? $file['data']['bypass_autoconversion'] : variable_get('video_bypass_conversion', FALSE),
'#description' => t('This will bypass your auto conversion of videos.'),
- '#attributes' => array('class' => 'video-bypass-auto-conversion'),
+ '#attributes' => array('class' => array('video-bypass-auto-conversion')),
);
}
@@ -541,7 +541,7 @@ function video_widget_element_settings(&$element, &$form_state) {
'#title' => t('Convert video on save'),
'#default_value' => $convert,
'#description' => t('This will convert your video to flv format when you save, instead of scheduling it for cron.'),
- '#attributes' => array('class' => 'video-convert-video-on-save'),
+ '#attributes' => array('class' => array('video-convert-video-on-save')),
);
if ($convert) {
@@ -561,7 +561,7 @@ function video_widget_element_settings(&$element, &$form_state) {
'#title' => t('Use the default thumbnail for this video?'),
'#default_value' => $default_thumb,
'#description' => t('This will set a flag for this video to use the default video thumbnail when outputed..'),
- '#attributes' => array('class' => 'video-use-default-video-thumb'),
+ '#attributes' => array('class' => array('video-use-default-video-thumb')),
);
if ($default_thumb) {
$element['data']['use_default_video_thumb']['#attributes']['checked'] = 'checked';