aboutsummaryrefslogtreecommitdiff
path: root/plugins/video_upload/video_upload.module
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/video_upload/video_upload.module')
-rw-r--r--plugins/video_upload/video_upload.module10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/video_upload/video_upload.module b/plugins/video_upload/video_upload.module
index 55d72d7..d0a82f0 100644
--- a/plugins/video_upload/video_upload.module
+++ b/plugins/video_upload/video_upload.module
@@ -135,6 +135,8 @@ function video_upload_form_alter($form_id, &$form) {
if($form_id == 'video_node_form' && isset($form['video']) && user_access('upload video files')) {
theme('video_upload_get_script');
+
+ $form['#suffix'] = theme('video_upload_busy');
//get node object from form
$node = $form['#node'];
@@ -365,4 +367,12 @@ function theme_video_upload_get_script() {
}
+function theme_video_upload_busy() {
+ return '<div id="sending" style="display: none;">
+ <h3>' . t('Sending video... please wait.') . '</h3>
+ <img src="'. drupal_get_path('module', 'video_upload') . '/busy.gif" alt="' . t('Sending video... please wait.') . '"/>
+ </div>';
+}
+
+