diff options
-rw-r--r-- | includes/video_helper.inc | 4 | ||||
-rw-r--r-- | video.field.inc | 2 | ||||
-rw-r--r-- | video.install | 2 | ||||
-rw-r--r-- | video.module | 14 |
4 files changed, 11 insertions, 11 deletions
diff --git a/includes/video_helper.inc b/includes/video_helper.inc index e6627ca..8ba1840 100644 --- a/includes/video_helper.inc +++ b/includes/video_helper.inc @@ -88,9 +88,9 @@ class video_helper { // Check the checkbox to use default thumbnail on node $thumbnail->filepath = $default_thumbnail->uri; } - elseif (isset($variables['item']['thumbanail']) ? TRUE : FALSE) { + elseif (isset($variables['item']['thumbnail']) ? TRUE : FALSE) { // actual video thumbnails is present - $thumbnail_load = file_load($variables['item']['thumbanail']); + $thumbnail_load = file_load($variables['item']['thumbnail']); $thumbnail->filepath = $thumbnail_load->uri; } else { diff --git a/video.field.inc b/video.field.inc index 72b15e5..c848b5e 100644 --- a/video.field.inc +++ b/video.field.inc @@ -135,7 +135,7 @@ function video_field_presave($entity_type, $entity, $field, $instance, $langcode if (!empty($field['settings']['default_video_thumbnail'])) { foreach ($items as $delta => $item) { if ($item['use_default_video_thumb']) - $items[$delta]['thumbanail'] = $field['settings']['default_video_thumbnail']['fid']; + $items[$delta]['thumbnail'] = $field['settings']['default_video_thumbnail']['fid']; } } file_field_presave($entity_type, $entity, $field, $instance, $langcode, $items); diff --git a/video.install b/video.install index 0d1c8e7..450fb48 100644 --- a/video.install +++ b/video.install @@ -156,7 +156,7 @@ function video_field_schema($field) { 'not null' => FALSE, 'unsigned' => TRUE, ), - 'thumbanail' => array( + 'thumbnail' => array( 'description' => 'The {file_managed}.fid being referenced for video thumbanil.', 'type' => 'int', 'not null' => FALSE, diff --git a/video.module b/video.module index 8d31806..bc5aa2f 100644 --- a/video.module +++ b/video.module @@ -176,12 +176,12 @@ function video_thumb_process(&$element, &$form_state) { } if (!empty($thumbss)) { - $element['thumbanail'] = array( + $element['thumbnail'] = array( '#type' => 'radios', '#title' => t('Video thumbnails'), '#element_validate' => array('video_thumbnail_validate'), '#options' => $thumbss, - '#default_value' => !empty($file['thumbanail']) ? $file['thumbanail'] : $thumbs[$default_thumb]->fid, + '#default_value' => !empty($file['thumbnail']) ? $file['thumbnail'] : $thumbs[$default_thumb]->fid, '#weight' => 10, '#attributes' => array('class' => array('video-thumbnails'), 'onchange' => 'videoftp_thumbnail_change()', 'rel' => 'video_large_thumbnail-' . $delta), ); @@ -193,26 +193,26 @@ function video_thumb_process(&$element, &$form_state) { // if fail creating thumbnails fall back to manual or manual upload if ((!empty($gen_fail) && $field['settings']['autothumbnail'] == 'auto_fallback') || $field['settings']['autothumbnail'] == 'manual_upload') { - $element['thumbanail'] = array( + $element['thumbnail'] = array( '#title' => t('Video thumbnail'), // '#element_validate' => array('video_thumbnail_validate'), '#type' => 'managed_file', '#description' => t('The uploaded image will be used as video thumbnail on this video.'), - '#default_value' => !empty($file['thumbanail']['fid']) && is_integer($file['thumbanail']['fid']) ? $file['thumbanail']['fid'] : NULL, + '#default_value' => !empty($file['thumbnail']['fid']) && is_integer($file['thumbnail']['fid']) ? $file['thumbnail']['fid'] : NULL, '#upload_location' => file_default_scheme() . '://' . variable_get('video_thumb_path', 'videos/thumbnails') . '/' . $file['fid'], ); } // if no thumbnail creation if ($field['settings']['autothumbnail'] == 'no') { - $element['thumbanail'] = array( + $element['thumbnail'] = array( '#type' => 'value', '#value' => NULL, ); } // Setup our large thumbnail that is on the left. // @todo Add smaller video preview instead of thumbnail? - if (isset($file['thumbanail']) && !empty($file['thumbanail'])) { - $large_thumb = file_load($file['thumbanail']); + if (isset($file['thumbnail']) && !empty($file['thumbnail'])) { + $large_thumb = file_load($file['thumbnail']); } elseif (!empty($field['settings']['default_video_thumbnail']['fid'])) { $large_thumb = file_load($field['settings']['default_video_thumbnail']['fid']); |