diff options
-rwxr-xr-x | run.inc | 3 | ||||
-rwxr-xr-x | textbook_companion.module | 21 |
2 files changed, 21 insertions, 3 deletions
@@ -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.', |