diff options
author | Sashi20 | 2020-08-03 13:03:51 +0530 |
---|---|---|
committer | Sashi20 | 2020-08-03 13:03:51 +0530 |
commit | 71c70c4e2b68572f071fa0814fa941c2b1b661a4 (patch) | |
tree | 5e3bab0021f9037131402be79b26b8f9c80e789c | |
parent | 2cd6cc02015229bd6e19d7ec385fc70bb7d638f9 (diff) | |
download | fellowship_testimonials-71c70c4e2b68572f071fa0814fa941c2b1b661a4.tar.gz fellowship_testimonials-71c70c4e2b68572f071fa0814fa941c2b1b661a4.tar.bz2 fellowship_testimonials-71c70c4e2b68572f071fa0814fa941c2b1b661a4.zip |
Increase maxlength of the video textfield
-rw-r--r-- | testimonials_add.inc | 1 | ||||
-rw-r--r-- | testimonials_edit.inc | 3 |
2 files changed, 3 insertions, 1 deletions
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' => '<div id="testimonial-video">', '#suffix' => '</div>', //"#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' => '<div id="testimonial-video">', '#suffix' => '</div>', //"#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++; } |