diff options
author | Prashant S | 2016-11-28 12:06:39 +0530 |
---|---|---|
committer | GitHub | 2016-11-28 12:06:39 +0530 |
commit | f0a7989ac84670a8ec2ca7abbe1c1a14b211fb41 (patch) | |
tree | 8823c7c00af01f1e9b8d4573d60f3bf7d96fa415 /textbook_companion.module | |
parent | c2c6a180da55d79d4431c3d322e8796cfafa277a (diff) | |
parent | b49a0530c023c6c7444a56f300c48479bd623627 (diff) | |
download | scilab_textbook_companion-f0a7989ac84670a8ec2ca7abbe1c1a14b211fb41.tar.gz scilab_textbook_companion-f0a7989ac84670a8ec2ca7abbe1c1a14b211fb41.tar.bz2 scilab_textbook_companion-f0a7989ac84670a8ec2ca7abbe1c1a14b211fb41.zip |
Merge pull request #6 from prashantsinalkar/drupal_7.x
added new tbc certificate template with qr_code implementation
Diffstat (limited to 'textbook_companion.module')
-rwxr-xr-x | textbook_companion.module | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/textbook_companion.module b/textbook_companion.module index 3f55940..cf2d3cb 100755 --- a/textbook_companion.module +++ b/textbook_companion.module @@ -642,7 +642,7 @@ function textbook_companion_menu() ), 'file' => 'cheque_contact.inc' ); - $items['certificate'] = array( + $items['certificates'] = array( 'title' => 'List of all Certificates', 'description' => 'List of all Certificates', 'page callback' => '_list_all_certificates', @@ -651,18 +651,28 @@ function textbook_companion_menu() ), 'file' => 'pdf/list_all_certificates.inc' ); - $items['certificate/generate_pdf'] = array( + $items['certificates/generate_pdf'] = array( 'title' => 'Download Certificate', 'description' => 'Download Certificate', 'page callback' => 'drupal_get_form', 'page arguments' => array( 'generate_pdf' ), + 'type' => MENU_CALLBACK, 'access arguments' => array( 'generate pdf' ), 'file' => 'pdf/generate_pdf.inc' ); + $items["certificates/verify"] = array( + "title" => "Certificate Verification", + "page callback" => "verify_certificates", + "access arguments" => array( + "verify certificates" + ), + 'type' => MENU_CALLBACK, + 'file' => 'pdf/verify_certificates.inc', + ); /*******************/ $items['Summer_Internship_Forms/forms'] = array( 'title' => 'List of all Copyright Form and Undertaking Form for books', @@ -790,6 +800,10 @@ function textbook_companion_permission() "title" => t("list all certificates"), "description" => t("Allows users to list all certificates.") ), + "verify certificates" => array( + "title" => t("Verify certificates"), + "description" => t("Allows users to verify certificates.") + ), "generate pdf" => array( "title" => t("Generate pdf"), "description" => t("Allows users to Generate pdf.") |