diff options
author | Saketh1499 | 2021-09-21 20:38:41 +0530 |
---|---|---|
committer | Saketh1499 | 2021-09-21 20:38:41 +0530 |
commit | b93b6fb9be51ecd1d459abbbf46871ed961da540 (patch) | |
tree | 475dca2cada099bbae2cc6cfe3bff26ba8133f7b | |
parent | 965b87e13b957c35fea360aca13a9a8ef47ae6cf (diff) | |
download | fellowship_testimonials-b93b6fb9be51ecd1d459abbbf46871ed961da540.tar.gz fellowship_testimonials-b93b6fb9be51ecd1d459abbbf46871ed961da540.tar.bz2 fellowship_testimonials-b93b6fb9be51ecd1d459abbbf46871ed961da540.zip |
Updating activity names on the form
-rw-r--r-- | testimonials_add.inc | 4 | ||||
-rw-r--r-- | testimonials_edit.inc | 8 |
2 files changed, 5 insertions, 7 deletions
diff --git a/testimonials_add.inc b/testimonials_add.inc index 9ac95b9..c3a3029 100644 --- a/testimonials_add.inc +++ b/testimonials_add.inc @@ -18,8 +18,8 @@ function fellowship_testimonials_add_form($form,$form_state, $no_js_use = FALSE, "#type" => 'select', "#title" => t('Select Activity'), "#options" => array( - 'Semster-long internship' => 'Semster-long internship', - 'Fossee Summer fellowship' => 'Fossee Summer fellowship' + 'Semester Long Internship' => 'Semester Long Internship', + 'FOSSEE Summer Fellowship' => 'FOSSEE Summer Fellowship' ), "#required" => TRUE, ); diff --git a/testimonials_edit.inc b/testimonials_edit.inc index 5da3705..36c2f46 100644 --- a/testimonials_edit.inc +++ b/testimonials_edit.inc @@ -5,9 +5,7 @@ function fellowship_testimonials_edit() { $page_content .= drupal_render($fellowship_testimonials_edit_form); return $page_content; } -function fellowship_testimonials_edit_form($form, &$form_state, &$testimonial_id = 0) { - $testimonial_id = arg(2); - //var_dump($testimonial_id);die; +function fellowship_testimonials_edit_form($form, $form_state, $testimonial_id = 0) { $query = db_select('fellowship_testimonials'); $query->fields('fellowship_testimonials'); $query->condition('id', $testimonial_id); @@ -18,8 +16,8 @@ function fellowship_testimonials_edit_form($form, &$form_state, &$testimonial_id "#type" => 'select', "#title" => t('Select Activity'), "#options" => array( - 'Semster-long internship' => 'Semster-long internship', - 'Fossee Summer fellowship' => 'Fossee Summer fellowship' + 'Semester Long Internship' => 'Semester Long Internship', + 'FOSSEE Summer Fellowship' => 'FOSSEE Summer Fellowship' ), "#required" => TRUE, '#default_value' => $row->activity, |