-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsummary.php
More file actions
19 lines (18 loc) · 754 Bytes
/
Copy pathsummary.php
File metadata and controls
19 lines (18 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/**
* REDCap External Module: REDCap REST
* Send API calls when saving particular instruments when a trigger condition is met.
* Example URL:
* /ExternalModules/?prefix=redcap_rest&page=summary&pid=45
* @author Luke Stevens, Murdoch Children's Research Institute
*/
if (is_null($module) || !($module instanceof MCRI\REDCapREST\REDCapREST)) { exit(); }
if (!$module->userHasPermission()) {
require_once APP_PATH_DOCROOT . 'ProjectGeneral/header.php';
echo '<div class="red">'.\RCView::tt('pub_001').'</div>';
require_once APP_PATH_DOCROOT . 'ProjectGeneral/footer.php';
exit;
}
require_once APP_PATH_DOCROOT . 'ProjectGeneral/header.php';
$module->summaryPage();
require_once APP_PATH_DOCROOT . 'ProjectGeneral/footer.php';