Fork me on GitHub

Hooks are used to hook into the DrupalGap mobile app dev kit. For example, to hook into the moment when your custom DrupalGap module is installed, use hook_install() like so:

 * Implements hook_install().
function my_module_install() {
  console.log('My module is being installed!');
  // Do stuff...

A listing of hooks is available below. Click on a hook to learn more about when, and how to use it:

For a complete listing of hooks, be sure to visit the DrupalGap API.