summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorprashantsinalkar2019-09-05 00:12:12 +0530
committerprashantsinalkar2019-09-05 00:12:12 +0530
commitf5c5203b6bdef5809efba278a6ff98a9c4c338bd (patch)
treee666baea6f15612730c088db767047c92e1fbbe0
parentb841ebce5ac2c0c0526bf8ade3a02fed42bbe550 (diff)
downloadr_textbook_companion-f5c5203b6bdef5809efba278a6ff98a9c4c338bd.tar.gz
r_textbook_companion-f5c5203b6bdef5809efba278a6ff98a9c4c338bd.tar.bz2
r_textbook_companion-f5c5203b6bdef5809efba278a6ff98a9c4c338bd.zip
updated the code for new category
-rwxr-xr-xrun.inc3
-rwxr-xr-xtextbook_companion.module21
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.',