Closed (works as designed)
Project:
JSON server
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Mar 2008 at 22:38 UTC
Updated:
29 Oct 2008 at 23:37 UTC
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
Comment #1
dayre commentedYou likely want to use the _init() hook... call it json_server_init().
Comment #2
andremolnar commentedjson_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.