I'm making my first Drupal Module, and I'm just looking for some tips/direction for development.
The module will parse a JSON feed and simply show each object in a formatted way as a simple page. I plan to expand this to be much more modular (including writing to a database table) in the future when time permits.
The "page" display will be something like: - Thumbnails for each different object within the JSON feed - Each thumbnail will have a small thumbnail image, title, and teaser (short description) - Each thumbnail will be clickable - Clicking a thumbnail will produce a lightbox (Lightbox2 or Colorbox) style pop-up with more information for that specific object - Information inside the pop-up should be full description, various other images, etc. - I suppose that each thumbnail will be around 280x320px (though I may want to administer the size of this)
Currently I am able to parse the JSON feed and get the data that I want using:
$json = drupal_http_request($url) then $data =
drupal_json_decode($json->data). After this I can simply create a string that I can use for the output to
'page_callback' in the
However for returning the output, should I just return one large string that gets printed to the page? or is there a better way?