summaryrefslogtreecommitdiff
path: root/lab_migration.module
diff options
context:
space:
mode:
authorPrashant P. Shah2012-05-09 12:55:26 +0530
committerPrashant P. Shah2012-05-09 12:55:26 +0530
commit122a1e634d9dc5a5ce4b2693ccf31d3055aafca6 (patch)
tree7124cd96858b4f8d5f1b0da2ca1dbef500a6aa54 /lab_migration.module
parent7fbebf5d1a4d3270a7f5a4478d0efcaa871c2f8b (diff)
downloadscilab_lab_migration-122a1e634d9dc5a5ce4b2693ccf31d3055aafca6.tar.gz
scilab_lab_migration-122a1e634d9dc5a5ce4b2693ccf31d3055aafca6.tar.bz2
scilab_lab_migration-122a1e634d9dc5a5ce4b2693ccf31d3055aafca6.zip
adds download links to codes
Signed-off-by: Prashant P. Shah <pshah.mumbai@gmail.com>
Diffstat (limited to 'lab_migration.module')
-rwxr-xr-xlab_migration.module26
1 files changed, 26 insertions, 0 deletions
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;
}