Drupal bash script to show difference between your theme function override and the original

Heres a handy script I wrote this morning, how do you easily see the differences between your mytheme_function override template.php entries and the original theme_function in the sites/all/modules, modules/, includes/ ?

It's bash to the rescue.

This script builds an index file of known themed functions, extracts your existing declared function and the theme_function from the original and your template file then uses 'diff' to show the difference in side-by-side format! awesome

This could be used to diff your existing functions in template.php with a freshly upgraded install to see how the new theme function differs from your existing template.php so you know what todo to make for a clean upgrade!

Check the attached file, dont forget to chmod +x the bash script and run it from within drupal's basedir

ie (the output is a lot tidier on your console!)

download the drupal bash script here

AttachmentSize
override-template-function-compare1.77 KB

An online game is a game

An online game is a game played over some form of computer network. This almost always means the Internet or equivalent technology, but games have always used whatever technology was current: modems before the Internet, and hard wired terminals before modems. The expansion of online gaming has reflected the overall expansion of computer networks from small local networks to the Internet and the growth of Internet access itself. Online games can range from simple text based games to games incorporating complex graphics and virtual worlds populated by many players simultaneously. Many online games have associated online communities, making online games a form of social activity beyond single player games.
flash games, Traffic Monster, Jailbreaker, Sonic, Dress properly, Deathplanet,