From 124ec00de9c01136b00bc359874e8d19c010a1df Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Thu, 15 Feb 2018 14:52:36 +0530 Subject: Changed http to https --- dwsim_flowsheet.module | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) (limited to 'dwsim_flowsheet.module') diff --git a/dwsim_flowsheet.module b/dwsim_flowsheet.module index a122f17..43f8f8d 100755 --- a/dwsim_flowsheet.module +++ b/dwsim_flowsheet.module @@ -465,6 +465,28 @@ function dwsim_flowsheet_menu() ), 'file' => 'pdf/cert_new.inc' ); + $items['flowsheeting-project/certificates_custom'] = array( + 'title' => 'List of Flowsheet Custom Certificates', + 'description' => 'List of flowsheet Custom Certificates', + 'page callback' => '_list_flowsheet_custom_certificates', + 'access arguments' => array( + 'list flowsheet custom certificates' + ), + 'file' => 'pdf/list_mentor_certificates.inc' + ); + $items['flowsheeting-project/certificates_custom/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/mentor_cert_pdf.inc' + ); $items["flowsheeting-project/certificates/verify"] = array( "title" => "Certificate Verification", "page callback" => "verify_certificates", @@ -474,6 +496,15 @@ function dwsim_flowsheet_menu() 'type' => MENU_CALLBACK, 'file' => 'pdf/verify_certificates.inc' ); + /*$items["flowsheeting-project/certificates_custom/verify"] = array( + "title" => "Certificate Verification", + "page callback" => "verify_custom_certificates", + "access arguments" => array( + "verify certificates" + ), + 'type' => MENU_CALLBACK, + 'file' => 'pdf/verify_certificates.inc' + ); /* $items["dwsim_flowsheet/code_approval/dependency/ajax"] = array( "title" => "Ajax callbacks", "page callback" => "dwsim_flowsheet_dependency_approval_ajax", @@ -536,6 +567,18 @@ function dwsim_flowsheet_permission() 'dwsim flowsheet generate abstract' => array( 'title' => t('dwsim flowsheet generate abstract'), 'restrict access' => TRUE + ), + "list flowsheet certificates" => array( + "title" => t("list flowsheet certificates"), + "description" => t("Allows users to list flowsheet certificates.") + ), + "list flowsheet custom certificates" => array( + "title" => t("list flowsheet custom certificates"), + "description" => t("Allows users to list flowsheet custom certificates.") + ), + "generate pdf" => array( + "title" => t("Generate pdf"), + "description" => t("Allows users to Generate pdf.") ) ); // return array('dwsim flowsheet create proposal', 'dwsim flowsheet manage proposal', 'dwsim flowsheet edit proposal', 'dwsim flowsheet approve proposal', 'dwsim flowsheet propose solution', 'dwsim flowsheet approve code', 'dwsim flowsheet bulk manage abstract', 'dwsim flowsheet bulk delete code', 'dwsim flowsheet upload code', 'dwsim flowsheet download code', 'administer dwsim flowsheet', 'dwsim flowsheet generate lab'); -- cgit