I was having some troubles running Drupal.service with the JSON Server module, and realized that it wasn't being included in any of the classes. After some investigation, I noticed json_load. This seemed kind of weird since "json" isn't the module name, and hook_load has to do with nodes.

I then renamed the function to json_server_init (hook_init), and then the jquery JSON javascript code was being included in every page.

Is this a bug? Or am I missing something with json_load?

Comments

robloach’s picture

Status: Active » Fixed

Ahhh, okay. The idea of json_load() is that you'll load jquery.json.js only when you need it.... Nevermind then.

Anonymous’s picture

Status: Fixed » Closed (fixed)