Thursday, October 19, 2017 08:45 am EDT
Bri's picture

Template suggestions for Drupal 7 - theme_hook_suggestions

I decided to take some time to figure out how template suggestions work in Drupal 7 being that the release date is getting very close. At the time of this writing Drupal 7 is in RC 4, but they are saying that it will be released officially on January 5th of 2011. I have been working with 7 for a few weeks and finally decided to see if I could get the template suggestions to work. A few things have changed, but they are not that much different from the way they worked in 6. The first difference is that 7 uses a double "-" for its templates by default.

Bri's picture

How to Patch a Drupal Module on Windows

If you use Drupal on a regular basis, chances are that you will want to apply a patch to a module at some point in time. Perhaps somebody has posted a patch in the issue queue that sounds like it will address a problem you are having. Patching files on windows is simple. Just follow these steps.

1. You will need to download the patch software. You can download the Patch program at http://gnuwin32.sourceforge.net/packages/patch.htm

2. Run the setup file and install the program using all of the default settings.

Bri's picture

ActionScript 3 Class for creating ToolTip Rollovers

So not long ago I needed to create some simple tooltip style rollovers for a project that I was working on. I did some searching and found that somebody had already written a class that handles them wonderfully. The class allows you to customize the way things look in several ways. Check out the class for yourself by downloading it from the creators page at http://blog.hy-brid.com/flash/25/simple-as3-tooltip/

Bri's picture

Using a Custom Image Button with Drupal 6 Search Form or Block

So you decided that you want to use an image instead of styling the inputs for the Drupal search block or form. Luckily, this isn't a difficult task at all. Using the hook_form_alter you can accomplish this. You will need to create a small module in order to make this happen. I called mine "modified_search". Here is what the .info file looks like:


; $Id:
name = Modified Search
description = Inject the search how i want it to look.
package = Other
version = VERSION
core = 6.x

And now for the contents of the .module file:

Bri's picture

Create Custom Drupal 6 Search Box and Theme It

If you are looking for a way to customize the search box in Drupal 6, here are some suggestions that may prove helpful. This info pertains to the search that is built into some themes rather than the search block.

The core search module specifies that the template to be used for the search_theme_form should be search-theme-form.tpl.php. If you theme doesn't already have this file included, you can copy it from the core search module folder.

Syndicate content