summaryrefslogtreecommitdiff
path: root/textbook_companion.module
diff options
context:
space:
mode:
Diffstat (limited to 'textbook_companion.module')
-rwxr-xr-xtextbook_companion.module45
1 files changed, 37 insertions, 8 deletions
diff --git a/textbook_companion.module b/textbook_companion.module
index 98263fb..3f55940 100755
--- a/textbook_companion.module
+++ b/textbook_companion.module
@@ -8,6 +8,16 @@ 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'
+ ),
+ 'type' => MENU_LOCAL_TASK,
+ 'file' => 'display_books.inc'
+ );
$items['proposal'] = array(
'title' => 'Book Proposal Form',
'description' => 'Book Proposal Form.',
@@ -633,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'
@@ -654,25 +664,40 @@ 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'
),
+ 'type' => MENU_LOCAL_TASK,
'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_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_form_pdf'
+ 'generate_undertaking_form_pdf'
),
'access arguments' => array(
'generate pdf'
),
+ 'type' => MENU_LOCAL_TASK,
'file' => 'pdf/generate_pdf.inc'
);
/*******************/
@@ -701,6 +726,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.")