It appears that the json_load hook in the module file isn't being executed, which I would assume is because it should be json_server_load, not json_load. However, that doesn't seem to work either, so I changed to it json_server_menu to get it to run correctly so that the JS file loads properly. That seemed to take care of it.

Comments

dayre’s picture

You likely want to use the _init() hook... call it json_server_init().

andremolnar’s picture

Status: Active » Closed (works as designed)

json_load() is a helper function that your own module can use to have the included json_server.js file loaded on a page.

I'm thinking of removing this function as json_server.js is only one possible way of making use of json_server services and may best be left to individual module developers. It may still remain in an example module that I'm thinking of including with the module.