Drupal

30 Dec, 13

Let's Drup Up The Week. Issue 13

Read now
23 Dec, 13

Let's Drup Up The Week. Issue 12

Read now
16 Dec, 13

Let's Drup Up The Week. Issue 11

Read now
09 Dec, 13

Let's Drup Up The Week. Issue 10

Read now
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