Skip to content

This is a framework for deploying hooks in REDCap on a global or per-project basis.

License

Notifications You must be signed in to change notification settings

rparrish/REDCap-Hooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REDCap-Hooks

This is a framework for deploying hooks in REDCap on a global or per-project basis.

This code is covered by a standard MIT license which means you can't hole me liable :-) In other words, it is YOUR responsiblity to ensure that the use of this code or any modifications to it meet your institutional security guidelines. This code is intended as example code for learning REDCap and not necessarily as production-ready code. In other words, use at your own risk. Please also leave attribution to this repository in the code.

Using this Framework

The code contained in this repository is typically installed in a subfolder off your root redcap web directory (typically called hooks).

Place the contents into your hooks folder

When you're done the hierarchy should look like this image:

In your control center, make sure you have hooks enabled

Set the path to the redcap_hooks.php file - the name of the parent folder does not need to be 'hooks' if you don't like.

Test

By default, the global hooks file /global/global_hooks.php will render a colored div for all hooks when you are a super user. So, if you visit the control center, for example, you should see a custom hook at the bottom of the page (where the redcap_control_center hook is enabled):

About

This is a framework for deploying hooks in REDCap on a global or per-project basis.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published