Bash – Add drupal site name to PS1
I updated my bash prompt (PS1) the other day. Now it displays what site I’m in. I recently posted my former change: An improved PS1 for Git in Bash. Now I added an extra bit of code that inserts the...
View ArticleDrupal 7 – list taxonomy terms
I’m running some tests and thought I’d post the php code to display the terms for a taxonomy: At the moment I’m considering leveraging the benefits of CCK Select Other for ease of entry with taxonomies...
View ArticleDrupal 7 Views – Manipulating Args with php
I wanted to pass a string to a view that only accepts an entity id as an argument. I the past I’d been able to use a string based argument after adding relationships but that wasn’t possible in this...
View ArticleDrupal 6 – Pre-Popluate Menu Parents with jQuery
Here’s a fun one. I wanted the menu parent to be pre-populated on node creation. Use case: When a content editor creates a new ‘Electronic Flyer’ it will be added to the per-determined menu: Primary...
View ArticleDrupal 7 – resizing the content area based on publish date
I was asked to look at a site where the content created before Jan. 15th 2013 was crafted to display nicely in a 600px wide area. New content is being added with a much wider area and with some thought...
View ArticleDrupal 6 – Contact Override custom module
Just created a quick and dirty custom module: Contact Override. I posted it on bitbucket: bitbucket.org/_vid/contact_override Nothing too exciting, just an override to the D6 contact form. It appends...
View ArticleDrush enable all inactive modules
I’ve been using make files a lot lately and when ever I’m ready to release an updated file I like to verify that all the project versions are up to date. To leverage Drupal’s update functionality each...
View ArticleUpdating select lists in bulk – w/ jquery, drupal
So I wrote this script 1 year and 1/2 ago about bulk label operations (Drupal 7 CCK – Creating ‘Label Bulk Operations’). Well the updateLabels() function from that code came in handy today. I needed to...
View ArticleJS Tweak to the Drupal 7 Menu Management Screen
I tweaked Drupal Menu management screen today. Previously after editing a menu item the menu page would reload and you’d be at the top of the menu list, essentially losing your place. This was a...
View ArticleJS Tweak to the Drupal 7 Contact Form
I tweaked our Drupal 7 Contact form today. The goal was to allow users to select the reason for contact and potentially the subject via the URL. We had this in place for our Drupal 6 site and the code...
View Article
More Pages to Explore .....