From f5c5203b6bdef5809efba278a6ff98a9c4c338bd Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Thu, 5 Sep 2019 00:12:12 +0530 Subject: updated the code for new category --- run.inc | 3 --- textbook_companion.module | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/run.inc b/run.inc index 8424e78..5f0680f 100755 --- a/run.inc +++ b/run.inc @@ -327,9 +327,6 @@ function ajax_example_files_callback($form, $form_state) case 'R': $example_file_type = 'Result file'; break; - case 'X': - $example_file_type = 'xcos file'; - break; default: $example_file_type = 'Unknown'; break; diff --git a/textbook_companion.module b/textbook_companion.module index b7b29d0..5953e5b 100755 --- a/textbook_companion.module +++ b/textbook_companion.module @@ -6,6 +6,27 @@ function textbook_companion_menu() { $items = array(); /* users */ + $items['Completed_Books'] = array( + 'title' => 'Completed Books', + 'page callback' => 'tbc_completed_books_display_new_category_all', + 'access arguments' => array( + 'display books in progress' + ), + 'type' => MENU_LOCAL_TASK, + 'file' => 'display_books.inc' + ); + $items['textbook_run'] = array( + 'title' => 'Download Codes', + 'page callback' => 'drupal_get_form', + 'page arguments' => array( + 'textbook_companion_book_run_form' + ), + 'access arguments' => array( + 'access content' + ), + 'type' => MENU_NORMAL_ITEM, + 'file' => 'textbook_run.inc' + ); $items['textbook-companion/proposal'] = array( 'title' => 'Book Proposal Form', 'description' => 'Book Proposal Form.', -- cgit