diff options
author | Prashant S | 2016-10-06 10:18:39 +0530 |
---|---|---|
committer | GitHub | 2016-10-06 10:18:39 +0530 |
commit | c2c6a180da55d79d4431c3d322e8796cfafa277a (patch) | |
tree | be319ed330b96983783aa4e417d387f88e8b283e /textbook_companion.module | |
parent | ef585554e8b1bb2b435074adea302970573cb02e (diff) | |
parent | f6cde8479056a9801407584f8c331d4a7e117e8a (diff) | |
download | scilab_textbook_companion-c2c6a180da55d79d4431c3d322e8796cfafa277a.tar.gz scilab_textbook_companion-c2c6a180da55d79d4431c3d322e8796cfafa277a.tar.bz2 scilab_textbook_companion-c2c6a180da55d79d4431c3d322e8796cfafa277a.zip |
Merge pull request #4 from prashantsinalkar/drupal_7.x
changed formating and added new features
Diffstat (limited to 'textbook_companion.module')
-rwxr-xr-x | textbook_companion.module | 45 |
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.") |