Closed signalpoint closed 6 years ago
Simply declare a custom module like so:
jDrupal.modules.custom.example = {};
Then you can take advantage of jDrupal's hooks, for example:
/**
* Implements hook_services_preprocess().
*/
function example_services_preprocess(options) {
//console.log(options);
if (options.service == 'user' && options.resource == 'login') {
// Do something special to the user login call...
}
}
In jDrupal 7 (without DrupalGap 7), how do you create a custom module?