Removing a link from Webform block

If you display your webform as block and then also use Full Node view in block settings, you will have a title that leads to the webform itself. Probably you don't want to do that. But what to override, it's kind of simple, just override node--node_id.tpl.php as this is in the end a node display and remove link from h2 tag. That is all.

Setting a drupal 7 Multisite to localhost

Without a powerful server drupal administration online is very slow. As I have a multisite online, for some bigger changes I decided to take it offline to localhost and try to build/change things on my computer an then upload DB online. But first I needed to configure my localhost to work with multisite.

Webform mail template override - total customization

I wanted to make a override of webform mail template, so I can send custom data to paying and non paying partners on my site. As I am using ZEN subtheme, I need to put all the the template in obviously template folder of subtheme, not a root one.

PHP block visibilty

To set block visibilty with fine details in drupal 7, you need to install php filter which is part of drupal core but not enabled by default. And then off to write some code. First part of code uses node type to show, in this case hide block for particular content type and in the second, we check url argument, so we hide if for particaler views.

Re-ordering Webform Component Descriptions

Webform is great but fails sometimes at some basic things. Like you want to display description before the field, YOU CAN'T!! seems stupid but it is like that. You can do some nasty jquery overrides or CSS if you can (put both as absolute position and move them). But to do this "DRUPAL WAY" you need to make a custom preprocess function for this in your theme.

Translating taxonomy summary in views

Here is another drupal i18n beast. I have nice taxonomy summary for a category of shops. Which is attachment for a view, which passes term to it to filter category and show only shops that are in that category. Looks nice, it is moderately useful and seems it has never been done before.

Mass enable/disable comments

If you created nodes and then enabled comments module after that you will have all those nodes without comments. Even if you enable comments for that content type, this will only help on the new nodes created. So to do that you would probably either run some code in phpmyadmin or make action to use with VBO module.

So for drupal 6 we go to phpmyadmin and run this query