summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaketh14992021-09-13 13:40:21 +0530
committerSaketh14992021-09-13 13:40:21 +0530
commit7e057cf99144461cb60fa200f9ab5f09e2151a34 (patch)
tree4fe40e5b2ae4295717ffdcfa5f64fe146b31ebce
parent0cc81be7fc8a341469f4b325ad9b487fc346e44c (diff)
downloadfellowship_testimonials-7e057cf99144461cb60fa200f9ab5f09e2151a34.tar.gz
fellowship_testimonials-7e057cf99144461cb60fa200f9ab5f09e2151a34.tar.bz2
fellowship_testimonials-7e057cf99144461cb60fa200f9ab5f09e2151a34.zip
Updating the interface
-rwxr-xr-xfellowship_testimonials.module30
-rw-r--r--testimonials_add.inc2
-rw-r--r--testimonials_edit.inc4
-rw-r--r--testimonials_year_wise.inc2
4 files changed, 19 insertions, 19 deletions
diff --git a/fellowship_testimonials.module b/fellowship_testimonials.module
index ede64fa..a564de7 100755
--- a/fellowship_testimonials.module
+++ b/fellowship_testimonials.module
@@ -7,8 +7,8 @@
"access arguments" => array("view fellowship_testimonials"),
"type" => MENU_CALLBACK
);*/
- $items["intership-experience"] = array(
- "title" => "Intership Experience",
+ $items["internship-experiences"] = array(
+ "title" => "Intership Experiences",
"page callback" => "drupal_get_form",
"page arguments" => array(
"fellowship_testimonials_display_form"
@@ -18,29 +18,29 @@
),
"type" => MENU_NORMAL_ITEM
);
- $items["intership-experience/year-wise"] = array(
- "title" => "Testimonials by FOSSEE Summer Fellows year wise",
- "page callback" => "intership-experience_display_year_wise",
+ $items["internship-experiences/year-wise"] = array(
+ "title" => "Testimonials by FOSSEE internship-experiences year wise",
+ "page callback" => "fellowship_testimonials_display_year_wise",
"access arguments" => array("view fellowship_testimonials"),
"type" => MENU_CALLBACK,
'file' => 'testimonials_year_wise.inc'
);
- $items["intership-experience/add"] = array(
- "title" => "Add intership-experience",
+ $items["internship-experiences/add"] = array(
+ "title" => "Add internship-experiences",
"page callback" => "fellowship_testimonials_add_all",
"access arguments" => array("manage fellowship_testimonials"),
"type" => MENU_CALLBACK,
'file' => 'testimonials_add.inc'
);
- $items["intership-experience/edit"] = array(
- "title" => "Edit intership-experience",
+ $items["internship-experiences/edit"] = array(
+ "title" => "Edit internship-experiences",
"page callback" => "fellowship_testimonials_edit_all",
"access arguments" => array("manage fellowship_testimonials"),
"type" => MENU_CALLBACK,
'file' => 'testimonials_edit.inc'
);
- $items["intership-experience/delete"] = array(
- "title" => "Delete intership-experience",
+ $items["internship-experiences/delete"] = array(
+ "title" => "Delete internship-experiences",
"page callback" => "fellowship_testimonials_delete_all",
"access arguments" => array("manage fellowship_testimonials"),
"type" => MENU_CALLBACK
@@ -141,15 +141,15 @@ function fellowship_testimonials_display_form($form, $form_state){
$form['tab_content'] = array(
'#type' => 'item',
'#markup' => '<ul class="nav nav-tabs">
- <li class="active"><a data-toggle="tab" href="#intership-experience-text">Text</a></li>
- <li><a data-toggle="tab" href="#intership-experience-video">Video</a></li>
+ <li class="active"><a data-toggle="tab" href="#internship-experiences-text">Text</a></li>
+ <li><a data-toggle="tab" href="#internship-experiences-video">Video</a></li>
</ul>
<div class="tab-content">
- <div id="intership-experience-text"class="tab-pane fade in active">' . get_text_testimonials() . '
+ <div id="internship-experiences-text"class="tab-pane fade in active">' . get_text_testimonials() . '
</div>
- <div id="intership-experience-video" class="tab-pane fade ">' . get_video_testimonials() . '
+ <div id="internship-experiences-video" class="tab-pane fade ">' . get_video_testimonials() . '
</div>
</div>'
diff --git a/testimonials_add.inc b/testimonials_add.inc
index 920cb43..934a1cc 100644
--- a/testimonials_add.inc
+++ b/testimonials_add.inc
@@ -272,5 +272,5 @@ function fellows_add_more_remove_one($form, &$form_state) {
} else {
drupal_set_message("Testimonial added successfully", "status");
}
- drupal_goto('intership-experience/edit');
+ drupal_goto('internship-experiences/edit');
} \ No newline at end of file
diff --git a/testimonials_edit.inc b/testimonials_edit.inc
index 3efaa65..2023044 100644
--- a/testimonials_edit.inc
+++ b/testimonials_edit.inc
@@ -313,7 +313,7 @@ function fellows_add_more_remove_one($form, &$form_state) {
} else {
drupal_set_message("Testimonial updated successfully", "status");
}
- drupal_goto('intership-experience/edit');
+ drupal_goto('internship-experiences/edit');
}
function fellowship_testimonials_edit_all($testimonial_id=0) {
@@ -361,7 +361,7 @@ function fellowship_testimonials_edit_all($testimonial_id=0) {
$institute,
$row -> activity,
$testimonial_type,
- l("Edit", "intership-experience/edit/{$row->id}")
+ l("Edit", "internship-experiences/edit/{$row->id}")
// l("Delete", "fellowship-testimonials/delete/{$row->id}")
);
array_push($rows, $item);
diff --git a/testimonials_year_wise.inc b/testimonials_year_wise.inc
index 527bfcc..3af9563 100644
--- a/testimonials_year_wise.inc
+++ b/testimonials_year_wise.inc
@@ -1,5 +1,5 @@
<?php
-function fellowship_testimonials_display_year_wise($year) {
+function fellowship_testimonials_display_year_wise() {
$page_content = "";
/*$query = "
SELECT * FROM fellowship_testimonials