Monthly Archives: August 2013

How To Override a Contributed Module’s Function

I wanted to change the message of the add-to-cart confirmation popup message on the gench site.

I’m using the Commerce Kickstart distribution of Drupal. Utilizing the Theme Devel module, I can see that a contributed module named commerce_add_to_cart_confirmation is delivering the message text I want to change.

Thanks to my newly minted DrupalizeMe knowledge, I know I can override a contributed module’s function(s) from the theme layer. So I find the function responsible for the message in profiles/commerce_kickstart/modules/contrib/commerce_add_to_cart_confirmation/commerce_add_to_cart_confirmation.rules.inc. I copy & paste the function into my theme’s template.php file. I preface the name of the pasted function with the name of my theme followed by an underscore (genchstyle_). I change the message text, save my new function, clear my cache and load the confirmation message: no change. Why? Continue reading

Wow – Just Wow!

It’s true what they say about the fastest way to get out of a funk is to help others.

I’m volunteering this week to teach a group of tweens Drupal. We had a blast yesterday – what a great bunch of individuals.

None of the students have prior site building experience, but by the end of our first day, each of them had created their own Drupal 7 site. They spun-up their own dev sites on Pantheon, installed 3 modules, created content and new content types, created page and block views, learned how to use blocks and mastered menus. Continue reading