Drupal 6 Module Development: Creating a Related Nodes Block Tutorial 1 of 2
2,266 views · Published 21 November 2012 · 34:27 · Indexed 25 September 2026
Channel: Web Development Tutorials · 2012 · Education
In this Drupal Video Tutorial, we take a look at custom module development. With our module, we create a block that will list other related nodes based on the taxonomy terms of the node being viewed. In this tutorial, we'll look at how to call hook_block, how to manage the $op variable, querying the database and returning a value to our block. While this is easily done with the Views module, we'll take this a step further in Tutorial #2 and ensure we get 5 random results and if 5 aren't available, we'll populate the list with additional nodes based on the content type we are viewing. This tutorial is about 34 minutes in length and I apologize in advance for the sound quality.
More from this channel
-
9:04
Drupal Video Tutorial: Embedding Multi-Axis Reviews
-
2:27
Cool Drupal 7 Modules #1: Module Filter
-
13:12
Introduction to PHP for Drupal Tutorial #5: Nesting If Statements and Switch Statements
-
13:17
Introduction to PHP for Drupal Tutorial #6: PHP Arrays
-
16:08
Introduction to PHP for Drupal Tutorial #7: PHP Loops
-
11:54
Introduction to PHP for Drupal Tutorial #8: PHP Functions
-
10:02
Introduction to PHP for Drupal Tutorial #10: PHP Objects
-
10:57
Drupal 7 Module Development Tutorial #11 - Using Template_Preprocess to Change the Flag Link