Introduction to Module Development - Drupal

6,407 views

Published on

Creating Modules to make Drupal Dance: An Introduction

This is a hands-on introductory course on module development. We start by introducing the structure of a well-written module and place it in the context of Drupal's architecture. Sometimes you will come across an existing module that almost does what you need but not quite -- we will talk about to extend that module. Occasionally you simply have to write a new module from scratch. You will have your ownl development sandbox as we work through the Drupal API. You will leave the class sufficient understanding of Drupal’s menu, form and hook systems and the database. Below is the sequence in which topics will be covered.

Drupal Architecture -- Technology Stack, Code Base, Database.
Module Architecture -- Difference between Core, Contributed, Custom Module
Building Blocks of module -- Different types of files and why we use them
How to create simple page using hook_menu
How to create a simple block using hook_block that can be displayed in any region.
How to create schema using hook_install and hook_schema
How to create a simple form using hook_form and various actions like validate and submit.
How to display messages and errors using drupal_set_message and drupal_set_error functions.
How to alter existing forms using hook_form_alter
How to theme a simple block using theme functions
How to set permissions using hook_perm to view the page created in step 4
How to use hook_nodeapi to do node operations
A demo module will be built using all the above hooks to demonstrate how various hooks works
Bonus Topics : How to use coder module for coding standards, How to debug a module using xdebug, How to use drupal with eclipse IDE.
Prerequisite: We assume you have working knowledge of PHP.

Published in: Technology
0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
6,407
On SlideShare
0
From Embeds
0
Number of Embeds
3,537
Actions
Shares
0
Downloads
95
Comments
0
Likes
5
Embeds 0
No embeds

No notes for slide

×