summaryrefslogtreecommitdiff
path: root/textbook_companion.module
diff options
context:
space:
mode:
authorprashantsinalkar2016-09-08 12:29:40 +0530
committerprashantsinalkar2016-09-08 12:29:40 +0530
commit0c6c2c6f38a0729832750892e7bbacb6369aef15 (patch)
treeb959ff5bf4d84dc1b0eb158511828ac3e821c9f0 /textbook_companion.module
parent7a0cc4abf3fdf0d0c1438737df719a882c2d29f6 (diff)
downloadscilab_textbook_companion-0c6c2c6f38a0729832750892e7bbacb6369aef15.tar.gz
scilab_textbook_companion-0c6c2c6f38a0729832750892e7bbacb6369aef15.tar.bz2
scilab_textbook_companion-0c6c2c6f38a0729832750892e7bbacb6369aef15.zip
added interface to generate undertaking form dynamicaly
Diffstat (limited to 'textbook_companion.module')
-rwxr-xr-xtextbook_companion.module29
1 files changed, 21 insertions, 8 deletions
diff --git a/textbook_companion.module b/textbook_companion.module
index ef16f37..3f55940 100755
--- a/textbook_companion.module
+++ b/textbook_companion.module
@@ -643,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'
@@ -664,9 +664,9 @@ 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'
@@ -675,11 +675,24 @@ function textbook_companion_menu()
'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_form_pdf'
+ '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_undertaking_form_pdf'
),
'access arguments' => array(
'generate pdf'