Archive for February 2014

How to add custom Contextual Links to Drupal node teaser pages

Some time we need a quicker way to unpublish nodes in Drupal project with Contextual Links.

This mini code snippet will show you how to create a custom module to add links to the contextual shortcut (as seen in screenshot).

The code will also have a custom access check to only show the link for certain content type and custom permission.



Hangman Game in Python

Code for Hangman Game in Python :