From c368e3861fa443842e1efe5aaa0d296805869dc8 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Mon, 29 Aug 2016 17:30:41 +0530 Subject: changed code to display books in progress with proposal date --- textbook_companion.module | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'textbook_companion.module') diff --git a/textbook_companion.module b/textbook_companion.module index 98263fb..92fa49b 100755 --- a/textbook_companion.module +++ b/textbook_companion.module @@ -8,6 +8,15 @@ function textbook_companion_menu() { $items = array(); /* users */ + /* BOOKS IN PROGRESS */ + $items['books_in_progress'] = array( + 'title' => 'Books in Progress', + 'page callback' => 'tbc_books_in_progress_all', + 'access arguments' => array( + 'display books in progress' + ), + 'file' => 'display_books.inc' + ); $items['proposal'] = array( 'title' => 'Book Proposal Form', 'description' => 'Book Proposal Form.', @@ -701,6 +710,10 @@ function textbook_companion_permission() "title" => t("Book Proposal Form"), "description" => t("Book Proposal Form.") ), + "display books in progress" => array( + "title" => t("Book display books in progress"), + "description" => t("display books in progress.") + ), "approve book proposal" => array( "title" => t("Approve book proposal"), "description" => t("Allows users to approve book proposal.") -- cgit From e3cb56354491ef1cca3fa72ff96e93613675afab Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 30 Aug 2016 15:29:25 +0530 Subject: done minor changes in menu --- textbook_companion.module | 1 + 1 file changed, 1 insertion(+) (limited to 'textbook_companion.module') diff --git a/textbook_companion.module b/textbook_companion.module index 92fa49b..e062f3c 100755 --- a/textbook_companion.module +++ b/textbook_companion.module @@ -15,6 +15,7 @@ function textbook_companion_menu() 'access arguments' => array( 'display books in progress' ), + 'type' => MENU_LOCAL_TASK, 'file' => 'display_books.inc' ); $items['proposal'] = array( -- cgit From 8276dd15a3158820b89f71d90e4bb9c2d2eed4fd Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Wed, 31 Aug 2016 11:59:12 +0530 Subject: aaded menu type --- textbook_companion.module | 2 ++ 1 file changed, 2 insertions(+) (limited to 'textbook_companion.module') diff --git a/textbook_companion.module b/textbook_companion.module index e062f3c..febd18b 100755 --- a/textbook_companion.module +++ b/textbook_companion.module @@ -671,6 +671,7 @@ function textbook_companion_menu() 'access arguments' => array( 'list all certificates' ), + 'type' => MENU_LOCAL_TASK, 'file' => 'pdf/list_all_form_pdf.inc' ); $items['Summer_Internship_Forms/copyright-form/generate_pdf'] = array( @@ -683,6 +684,7 @@ function textbook_companion_menu() 'access arguments' => array( 'generate pdf' ), + 'type' => MENU_LOCAL_TASK,s 'file' => 'pdf/generate_pdf.inc' ); /*******************/ -- cgit From eeec5420e57a98f00c9b32631433700b40a4a0ad Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Wed, 31 Aug 2016 13:54:52 +0530 Subject: fixed menu issue --- textbook_companion.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'textbook_companion.module') diff --git a/textbook_companion.module b/textbook_companion.module index febd18b..ef16f37 100755 --- a/textbook_companion.module +++ b/textbook_companion.module @@ -684,7 +684,7 @@ function textbook_companion_menu() 'access arguments' => array( 'generate pdf' ), - 'type' => MENU_LOCAL_TASK,s + 'type' => MENU_LOCAL_TASK, 'file' => 'pdf/generate_pdf.inc' ); /*******************/ -- cgit From 0c6c2c6f38a0729832750892e7bbacb6369aef15 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Thu, 8 Sep 2016 12:29:40 +0530 Subject: added interface to generate undertaking form dynamicaly --- textbook_companion.module | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) (limited to 'textbook_companion.module') diff --git a/textbook_companion.module b/textbook_companion.module index ef16f37..3f55940 100755 --- a/textbook_companion.module +++ b/textbook_companion.module @@ -643,8 +643,8 @@ function textbook_companion_menu() 'file' => 'cheque_contact.inc' ); $items['certificate'] = array( - 'title' => 'List Of All Certificates', - 'description' => 'List Of All Certificates', + 'title' => 'List of all Certificates', + 'description' => 'List of all Certificates', 'page callback' => '_list_all_certificates', 'access arguments' => array( 'list all certificates' @@ -664,9 +664,9 @@ function textbook_companion_menu() 'file' => 'pdf/generate_pdf.inc' ); /*******************/ - $items['Summer_Internship_Forms/copyright-form'] = array( - 'title' => 'List Of All Copyright Forms for Completed books', - 'description' => 'List Of All Copyright Forms for Completed books', + $items['Summer_Internship_Forms/forms'] = array( + 'title' => 'List of all Copyright Form and Undertaking Form for books', + 'description' => 'List of all Copyright Form for books', 'page callback' => '_list_all_copyright_forms', 'access arguments' => array( 'list all certificates' @@ -675,11 +675,24 @@ function textbook_companion_menu() 'file' => 'pdf/list_all_form_pdf.inc' ); $items['Summer_Internship_Forms/copyright-form/generate_pdf'] = array( - 'title' => 'Download Copyright Forms for Completed books', - 'description' => 'Download Copyright Forms for Completed books', + 'title' => 'Download Copyright Form for books', + 'description' => 'Download Copyright Form for books', 'page callback' => 'drupal_get_form', 'page arguments' => array( - 'generate_form_pdf' + 'generate_copyright_form_pdf' + ), + 'access arguments' => array( + 'generate pdf' + ), + 'type' => MENU_LOCAL_TASK, + 'file' => 'pdf/generate_pdf.inc' + ); + $items['Summer_Internship_Forms/undertaking-form/generate_pdf'] = array( + 'title' => 'Download Undertaking Form for books', + 'description' => 'Download Undertaking Form for books', + 'page callback' => 'drupal_get_form', + 'page arguments' => array( + 'generate_undertaking_form_pdf' ), 'access arguments' => array( 'generate pdf' -- cgit