From 71c70c4e2b68572f071fa0814fa941c2b1b661a4 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Mon, 3 Aug 2020 13:03:51 +0530 Subject: Increase maxlength of the video textfield --- testimonials_add.inc | 1 + testimonials_edit.inc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/testimonials_add.inc b/testimonials_add.inc index 516d192..7cdc0a4 100644 --- a/testimonials_add.inc +++ b/testimonials_add.inc @@ -78,6 +78,7 @@ function fellowship_testimonials_add_form($form,$form_state, $no_js_use = FALSE, 'placeholder' => t('Copy paste the static url of the video, for eg: https://static.fossee.in/fossee/videos/FOSSEE_intern_Video/DSC_0006.m4v') ), '#size' => 255, + '#maxlength' => 255, '#prefix' => '
', '#suffix' => '
', //"#required" => TRUE, diff --git a/testimonials_edit.inc b/testimonials_edit.inc index 29402cb..4a4e804 100644 --- a/testimonials_edit.inc +++ b/testimonials_edit.inc @@ -73,6 +73,7 @@ function fellowship_testimonials_edit_form($form,$form_state, $testimonial_id = ), "#default_value" => $row->testimonial_video, '#size' => 255, + '#maxlength' => 255, '#prefix' => '
', '#suffix' => '
', //"#required" => TRUE, @@ -289,7 +290,7 @@ function fellows_add_more_remove_one($form, &$form_state) { 'place' => $v['fellows_fieldset'][$i]["place"] )); $query->condition('f_id', $v['fellows_fieldset'][$i]["f_id"]); - $result = $query->execute(); + $fellows_result = $query->execute(); if ($result != 0) { $fellowsupload++; } -- cgit