Drupal

02 Dec, 13

Let's Drup Up The Week. Issue 9

Read now
25 Nov, 13

Let's Drup Up The Week. Issue 8

Read now
18 Nov, 13

Let's Drup Up The Week. Issue 7

Read now
11 Nov, 13

Let's Drup Up The Week. Issue 6

Read now
07 Nov, 13

Programmatically Hiding A Fieldgroup On A Node Display in Drupal 7

If you have a fieldgroup in a node, you may want to hide it on some conditions. Here's how to do that programmatically. At first, we need to preprocess our node like this:

1
2
3
4
5
  1. /**
  2. * Implements hook_preprocess_HOOK().
  3. */
  4. function MODULE_NAME_preprocess_node(&$variables) {
  5. }

The tricky part starts here, if ...

Read now
07 Nov, 13

Drupal meets Fabric: Deploying Drupal and Performing Different Admin Related Tasks with Fabric

Yesterday, during a meeting with my Drupal friends, I showed them some Python magic including Fabric () and how it can be used to make your Drupal dev life easier. My friends been blown away ;) I promised to share my regular fabfile.py for a Drupal project, please see it below ...

Read now
04 Nov, 13

Let's Drup Up The Week. Issue 5

Read now
29 Oct, 13

Raw username token for Drupal 7

There are situations, when you or other modules alter username via hook_username_alter() and this can change username dramatically: for example, you can alter username into a combination of First and Last Name, etc. Looks nice, but there's a problem, it will alter username into First and Last Name everywhere, even ...

Read now
28 Oct, 13

Let's Drup Up The Week. Issue 4

Read now
21 Oct, 13

Let's Drup Up The Week. Issue 3

Read now