Caching Drupal Renderable Arrays

Love getting to learn something new. Going through some tutorials today, I realized there's an 'easy' hook to enable caching of the renderable arrays I never knew about. What exactly is a renderable array? ... Maybe the easiest way you can think of it is structured data that needs to be transformed into html. Previously I'd been using cache_set and cache_get, but this is quicker, and a bit more flexible.

Parsing the LEIE Database (DBF file)

Had a client today that needed to parse the USA LEIE Database (List of Excluded Individuals and Entities). This is the database the government uses to excluded vendors from taking part in any federally funded healthcare program. You can download a copy of your own here: https://oig.hhs.gov/exclusions/exclusions_list.asp. Surprise, the file is in .DBF format! Here's how you ignore that issue.

Tags: 

Bulk Uploading Redirects In Drupal 7

Had a client today with a list of 135ish redirects that needed entered, and a decent enough budget for me to do more than shove them in. I put together an admin page that allows you to upload a csv to be processed containing an internal source, destination, and redirect type (status code).

Tags: 

Loading Drupal Core Include Files (The Right Way)

Maybe it's because I've done more with Drupal that's off the map.. Or maybe I just dug further than others, but I've noticed way too many developers giving poor advice when it comes to loading the core include files. Allow me to correct that issue for you, and more importantly explain why you need to do it the right way.

Tags: 

Pages

Subscribe to Fragmented Thought RSS