summaryrefslogtreecommitdiff
path: root/lab_migration.module
diff options
context:
space:
mode:
authorSaketh14992021-07-27 10:13:41 +0530
committerSaketh14992021-07-27 10:13:41 +0530
commitd5760603472a1a4f07acdda1ef44f8115a8bc269 (patch)
treeb836d6b1986bd99d55e86c1edd7dd6607c97852f /lab_migration.module
parent21cfc2425884841b69969a6cddccd5201f053808 (diff)
downloadesim_lab_migration-d5760603472a1a4f07acdda1ef44f8115a8bc269.tar.gz
esim_lab_migration-d5760603472a1a4f07acdda1ef44f8115a8bc269.tar.bz2
esim_lab_migration-d5760603472a1a4f07acdda1ef44f8115a8bc269.zip
Certificate generation
Diffstat (limited to 'lab_migration.module')
-rwxr-xr-xlab_migration.module77
1 files changed, 76 insertions, 1 deletions
diff --git a/lab_migration.module b/lab_migration.module
index 0d37946..050f44a 100755
--- a/lab_migration.module
+++ b/lab_migration.module
@@ -417,7 +417,7 @@ function lab_migration_menu()
'file' => 'settings.inc',
);
/* AJAX REQUEST */
-$items["lab_bulk_manage_exp/ajax"] = array(
+ $items["lab_bulk_manage_exp/ajax"] = array(
"title" => "Ajax callbacks",
"page callback" => "lab_bulk_manage_exp_ajax",
"access arguments" => array("lab migration bulk manage code"),
@@ -431,6 +431,62 @@ $items["lab_bulk_manage_exp/ajax"] = array(
"type" => MENU_CALLBACK,
'file' => 'dependency_approval.inc',
);*/
+ $items['lab_migration/certificates'] = array(
+ 'title' => 'List of Lab Migration Certificates',
+ 'description' => 'List of Lab Migration Certificates',
+ 'page callback' => '_list_lab_migration_certificates',
+ 'access arguments' => array(
+ 'list Lab Migration certificates',
+ ),
+ 'file' => 'pdf/list_lab_migration_certificate.inc',
+ );
+ $items['lab_migration/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/cert_new.inc',
+ );
+ /*$items['lab_migration/certificates-custom'] = array(
+ 'title'=> 'List of Case Study Custom Certificates',
+ 'description'=> 'List of Case Study Custom Certificates',
+ 'page callback'=> '_list_cfd_lab_migration_custom_certificates',
+ 'access arguments'=> array(
+ 'list Case Study custom certificates'
+ ),
+ 'file'=> 'pdf/list_mentor_certificates.inc'
+ );
+ $items['lab_migration/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['lab_migration/certificates/verify'] = array(
+ "title" => "Certificate Verification",
+ "page callback" => "verify_certificates",
+ 'page arguments' => array(
+ 'verify_certificates',
+ ),
+ "access arguments" => array(
+ "verify certificates",
+ ),
+ 'type' => MENU_CALLBACK,
+ 'file' => 'pdf/verify_certificates.inc',
+ );
return $items;
}
@@ -488,6 +544,25 @@ function lab_migration_permission() {
'title' => t('lab migration generate lab'),
'restrict access' => TRUE,
),
+ "list Lab Migration certificates" => array(
+ "title" => t("list the certificates"),
+ "description" => t("list the certificates"),
+ 'restrict access' => true,
+ ),
+ "list Lab Migration custom certificates" => array(
+ "title" => t("list the mentor certificates"),
+ "description" => t("list the mentor certificates"),
+ 'restrict access' => true,
+ ),
+ "verify certificates" => array(
+ "title" => t("verify the certificates"),
+ "description" => t("verify the certificates"),
+ 'restrict access' => true,
+ ),
+ "generate pdf" => array(
+ "title" => t("Generate pdf"),
+ "description" => t("Allows users to Generate pdf.")
+ )
);
// return array('lab migration create proposal', 'lab migration manage proposal', 'lab migration edit proposal', 'lab migration approve proposal', 'lab migration propose solution', 'lab migration approve code', 'lab migration bulk manage code', 'lab migration bulk delete code', 'lab migration upload code', 'lab migration download code', 'administer lab migration', 'lab migration generate lab');
}