Style your Drupal theme according to day or night time
Here's a simple snippet to allow you to style your theme differently for day or night time. Place the following code into your theme's template.php file.Tags: drupaldrupal 7phpdaynightthemethemingtemplate
View ArticleEmbed Drupal block region into node page
Snippet to insert or embed Drupal block region into a node template.First of all, define the block region in your theme's .info file.YOUR_THEME.info...regions[BLOCK_REGION_NAME] = Block region...
View ArticleExtend Drupal's default Taxonomy terms overview table listing
Sharing something I recently needed to do.I wanted to add a new column to the default Drupal's Taxonomy term listing page that provides a link to a DraggableViews (receives term ID from contextual...
View ArticleRemove the "No front page content has been created yet." in the default...
/** * Implements template_preprocess_page(). */function YOUR_THEME_preprocess_page(&$vars) { // Remove the "No front page content has been created yet.". if...
View Article