Free Sample
+ Collection

Drupal 7 Module Development [Video]

Trevor James

A complete guide to practically building a fully functional custom Drupal 7 module from scratch
RRP $84.99

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Video Details

ISBN 139781782161189
Course Length3 hours 06 minutes

About This Video

  • Use the essential hooks and functions in your module code to build your own custom Drupal 7 module
  • Create database tables, write database queries and finally build and theme blocks using powerful hook functions
  • Set up an ideal development environment by reviewing the module from a security and performance standpoint

Who This Video Is For

This course is perfect for any Drupal user who is just starting to explore Drupal core and contributed modules. If you’ve used some contributed modules you can now turn to learning how to write your own custom Drupal 7 module. You should have a familiarity with Drupal but no experience with programming Drupal custom modules or PHP is required to follow this course.

Table of Contents

Installing Drupal for Custom Module Development
Installing and Configuring MAMP
Installing and Configuring Aptana Studio editor
Installing and Configuring Drupal
Drupal Modules
Setting Up custom and contrib Modules Directory
Introducing the Custom Facebook Feed Module
Preparing to Import Feeds
Creating the Feeds Importer
PHP Settings and Feeds Tamper
PHP Intro and Drupal Coding Standards
Creating the .info File
Creating the .module File
Understanding the Drupal API
Using the Devel Module
Using Devel Module to Inspect Page Variables
Menu Callbacks and Permissions
Using the hook_menu Function
Using the hook_permission Function
Adding the File to Our Module
The Form API
Using the system_settings_form
Using the admin_settings_form and Checkboxes
Creating and Using Drupal Variables
Using the hook_validate Function
Using the hook_form_alter Function
Connecting with the Database
Creating the .install File
Using the hook_schema Function – Part 1
Using the hook_schema Function – Part 2
Using the hook_uninstall Function
Using the hook_update Function
Node Hooks and Database System
Adding Node Hooks – Part 1
Adding Node Hooks – Part 2
Database Queries – Part 1
Database Queries – Part 2
Database Abstraction Layer
Block System and Theming
Understanding the hook_block_info Function
Understanding the hook_block_view Function
Understanding the block_contents custom Function
Theming the block – Part 1
Theming the block – Part 2
Security, Performance, and Testing of our Module
Drupal Module Security and Sanitization
Installing the Coder Module
Conducting a Simple Test – Part 1
Conducting a Simple Test – Part 2
Conducting a Simple Test – Part 3

What You Will Learn

  • Build a .info and .module file to set up your module
  • Write hook_menu and hook_permissions functions
  • Set up an admin settings form and use hook_form_alter
  • Create database tables using hook_schema and .install files
  • Write node hooks and database queries
  • Create a custom block via your module
  • Theme the block and write CSS to style it
  • Use t function and other sanitization functions to secure your module
  • Use and create custom Drupal variables
  • Explore the research functions in the Drupal API

In Detail

Drupal is an award-winning open-source Content Management System. It's a modular system, with an elegant hook-based architecture, and great code. Modules are plugins for Drupal that extend, build or enhance Drupal core functionality. With this course you will learn to build a Drupal custom module by completing short tasks and ultimately weave the tasks together to get a completed and fully functional module. Drupal 7 Module Development introduces you to module development by understanding the essential hooks and functions, building tables and querying the Drupal database, exploring module security, performance and how our module interacts with Drupal core and contributed modules. Each video walks you through essential Drupal functions and demonstrates how to use these functions in a module that we build hands-on together Drupal 7 Module Development starts by showing you how to set up your local development environment to support custom module development. You will learn how to use the best tools and configure them. Next you will learn to configure a Feeds importer to import content into your site that you will then leverage with your custom module and write a menu callback using hook_menu and hook_permissions. We will then look at the form API and write a hook_form_alter function and create a .install file and build a db schema function to create a table in our database Finally we create a block using our module and theme the block. We end the course by reviewing our module from a security and performance standpoint. From the local development to the review of security we build a custom module step-by-step throughout the course’s short videos.


Read More