Grasmash - grasmash.com

General Information:

Latest News:

Introducing Views Cache Bully: You're gonna cache your views, and you're gonna like it. 23 Aug 2013 | 03:44 am

Tucked away under the Views UI's "advanced" fieldset is a too-seldom-used option: Views caching. It allows you to cache the query results and/or rendered markup for any given view. This can drasticall...

CapitalCamp Presentation: Building an API (that people will actually use) 27 Jul 2013 | 04:02 am

Uploading a copy of the CapitalCamp 2013 presentation given by David Platek and me: Download the presentation CapitalCamp link If you attended the presentation, please feel free to leave feedback b...

jQuery sticky menu / sidebar 24 Jun 2013 | 09:59 pm

To make a sticky sidebar or stick menu (as feature on the left hand side of this page: Tags: jquery sticky sidebar

Installing XHProf for Drupal 20 Jun 2013 | 08:52 pm

There are many ways to install XHProf, but at the end of the day, you need to accomplish the same basic set of tasks: Install XHProf on your system Let PHP know where to find XHProf Integrate XHPro...

Applescript to add images to Microsoft Word table 3 Feb 2013 | 02:40 am

This is a bit of a forray into the unknown for me— I don't know a thing about applescript, but I managed to piece this working snippet together from various internet posts. Hope that it helps someone!...

Restoring an accidentally deleted Vagrant directory 20 Nov 2012 | 08:51 pm

If you accidentally deleted your Vagrant directory, and you have an orphaned VM sitting in VirtualBox, you can re-associate it with a new VagrantFile. Here's how. When new VM is first created for a g...

Field API - Creating your own field formatters 18 Oct 2012 | 11:10 pm

Drupal 7's Field API is amazing—it allows us to easily add fields to any type of entity, and customize those fields with various widgets and display formats. I'm going to walk you through two examples...

Create a "password_reset" resource for Services 8 Oct 2012 | 07:25 pm

Just another quick snippet to add to the Grasmash Services archive. This will allow you to POST an email address to /your_endpoint/user/password_reset and trigger a 'Forgot Password' email to be sent...

Create Display Suite fields for Flag & Flag Count 27 Sep 2012 | 07:58 pm

When added to a custom module, this snippet will add Display Suite Link and Flag Count fields for each applicable Flag type. Tags: drupal flag display suite

Snippet Snack: Create Display Suite fields for Flag & Flag Count 27 Sep 2012 | 07:58 pm

I've decided to make a new home for the small snippets that I post periodically: Snippet Snacks. This will be small repository for useful Drupal snippets. Here's the first one—a snippet that forms a ...

Recently parsed news:

Recent searches: