GithubHelp home page GithubHelp logo

rparrish / redcap-hooks Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 190 KB

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

License: MIT License

PHP 61.22% JavaScript 7.50% HTML 31.28%

redcap-hooks's Introduction

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):

redcap-hooks's People

Contributors

123andy avatar

Watchers

 avatar

Forkers

hypotheses

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.