Skip to content

Instantly share code, notes, and snippets.

@jangari
jangari / hook_functions.php
Created March 25, 2022 01:06
REDCap Non-production or Practice project warning hook for users and respondents
// REDCAP_EVERY_PAGE_TOP
function redcap_every_page_top($project_id=null)
{
if (PAGE === "Surveys/invite_participants.php" && !($_GET["email_log"]) == '1'){
$projectVals = Project::getProjectVals();
$status = $projectVals["status"];
$purpose = $projectVals["purpose"];
if ($status == 0){
switch($purpose){
@jangari
jangari / keybase.md
Created May 22, 2018 01:00
keybase proof

Keybase proof

I hereby claim:

  • I am jangari on github.
  • I am aidanwilson (https://keybase.io/aidanwilson) on keybase.
  • I have a public key ASASkyeG-ssRvXXnaJlFAVoU_mvhbC3eqX4Pu8SytTJG6Ao

To claim this, I am signing this object: