|Drupal 7 Module Development Tutorial #3 - Creating Tables with Hook_Schema||
In the third of ten Drupal video tutorials on custom module development, I show you how to create a custom database table that is automatically created when you install your module and deleted when you uninstall your module. To do so, we create a new file for our module, a .info file and call the function hook_schema. Additionally, I also show you how the Schema module can make our lives easier by providing the table description for our file.
|Drupal 7 Module Development Tutorial #2 - Creating a Default Flag with the Flag API||
In the second of ten Drupal video tutorials on custom module development, we begin by taking a look at the Flag API as we will be relying heavily on the Flag module for our custom work. In doing so, we call a flag hook which creates a default flag, flag application. Using the Flag UI, we are able to create the flag, get the associated code and update our .module file so that when our module is installed, it automatically creates the default flag application.
|Drupal 7 Module Development Tutorial #1 - Setting Up Our Project and Writing our .Info File||
In the first Drupal video tutorial of this ten part series, I show you the module we will be creating, the Flag Application module. From there, we head over to Drupal.org to get the Flag and Devel modules. Lastly, we create the two files that all modules require, the .info and .module files. This tutorial concludes with us writing the .info file for our module and enabling the module on our site.
|Improving the UI of Drupal 6 Proximity Searches||
In this Drupal video tutorial, we improve the UI of our proximity search (created with the Views, Gmap and Location modules) by validating postal codes submitted by users and displaying a status message if there are no nodes within the given proximity.
To achieve this, this tutorial shows you how to implement hook_form_alter to return a message to the user if they incorrectly enter a postal code and hook_views_pre_render to check our views result and display a message if no results are being returned.
This tutorial is predicated on the following video tutorials:
|Gmap, Location, Module Development|
|Custom Emedded Node Reviews||
In this video tutorial, we walk through a custom Node Review module (shared on this site) which embeds reviews in the node content so users do not have to go to a new page to submit a review. It is similar to the Node Review module but that module requires users to leave the node they are reviewing to submit their own review. This module is perfect for Ubercart product reviews to help upsell products. The tutorial is only 9 minutes long and if you don't care how the module works, just download it and start using it -- it is based on Drupal 6.
I've committed a patch to the Nodereview module on drupal.org to include the ability to embed node reviews using Fivestar. You can get it here.
|Module Development, Node Review, Fivestar, Voting API|
|Drupal 6 Module Development: Creating a Related Nodes Block 2 of 2||
In this Drupal video tutorial, we continue on with developing a related node queue that was started in Tutorial 1. We check to see how many nodes are returned with the same taxonomy terms and if it is less than 5, we run another query for nodes of the same content type.
This video is about 19 minutes in length and I apologize in advance, but the PIP video goes a little off half way through. Rest of the video is fine though.
|Drupal 6 Module Development: Creating a Related Nodes Block Tutorial 1 of 2||
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 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.
|Drupal 6 Overriding the Simplenews Subscription Block: Tutorial 2 of 2||
This tutorial is about 14 minutes in length and will cover some basic Drupal module development concepts.
|Simplenews, Module Development|
|Drupal 6 Simplenews Subscription Block Override - Tutorial 1 of 2||
In this Drupal Video Tutorial, we look at the Simplenews module and create a custom module to override the Simplenews subscription block. Using hook_form_alter, we rename the Simplenews save button and remove the Simplenews radio buttons for subscribe and unsubscribe.
This tutorial could also be considered a basic Drupal module development tutorial as we call hook_form_alter via a custom module. When viewing this tutorial, I assume you familiar with Simplenews and have the module already installed and Simplenews subscription block enabled.
In tutorial 2 for Simplenews Subscription Block Override, we replace the "save" button with an image button and introduce some jquery to our custom module so that the Simplenews subscription form fields is prepopulated with "Subscribe..." which disappears when a user clicks on the form field.
|Simplenews, Module Development|