From 122a1e634d9dc5a5ce4b2693ccf31d3055aafca6 Mon Sep 17 00:00:00 2001 From: Prashant P. Shah Date: Wed, 9 May 2012 12:55:26 +0530 Subject: adds download links to codes Signed-off-by: Prashant P. Shah --- lab_migration.module | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'lab_migration.module') diff --git a/lab_migration.module b/lab_migration.module index f0b74af..5d7fda8 100755 --- a/lab_migration.module +++ b/lab_migration.module @@ -264,6 +264,32 @@ function lab_migration_menu() 'type' => MENU_CALLBACK, 'file' => 'download.inc', ); + $items['lab_migration/full_download/experiment'] = array( + 'title' => 'Code Download', + 'description' => 'Code Download', + 'page callback' => 'lab_migration_download_full_experiment', + 'access arguments' => array('approve code'), + 'type' => MENU_CALLBACK, + 'file' => 'full_download.inc', + ); + $items['lab_migration/full_download/lab'] = array( + 'title' => 'Code Download', + 'description' => 'Code Download', + 'page callback' => 'lab_migration_download_full_lab', + 'access arguments' => array('approve code'), + 'type' => MENU_CALLBACK, + 'file' => 'full_download.inc', + ); + + /* DOWNLOAD FOR EVERYONE */ + $items['lab_migration_run'] = array( + 'title' => 'Download Codes', + 'page callback' => 'drupal_get_form', + 'page arguments' => array('lab_migration_run_form'), + 'access arguments' => array('access content'), + 'type' => MENU_NORMAL_ITEM, + 'file' => 'run.inc', + ); return $items; } -- cgit