SlideShare a Scribd company logo
CREATING MODULES IN DRUPAL 7.X
Sayed Ahmed
B.Sc. Eng. in Computer Science & Engineering
M. Sc. in Computer Science
Exploring Computing for 14+ years
sayed@justetc.net
http://sayed.justetc.net
TOPICS
 Creating modules - a tutorial: Drupal 7.x
 Writing .info files (Drupal 7.x)
 Show all errors while developing
 .install and the Fields API
 Drupal's code registry
 Suppress caching (for development) or to use an
external page cache
 Using the theme layer (Drupal 7.x)
STEPS
 Getting started
 Telling Drupal about your module
 Writing comments and implementing your first hook
 Declaring the block
 Retrieving data
 Generating block content
 Testing and troubleshooting the module
 Preparing for a module configuration form
 Creating the configuration form
 Validating the data
 Specifying a custom permission for a new page
 Adapting the query
 Theming the page
 Adding a 'More' link
 Testing with SimpleTest
 Practicing patches
GETTING STARTED
 module file name and location
.INFO FILES
 name = Module name
description = A description of what your module does.
core = 7.x
 name = Current posts
description = A block module that lists links to recent
posts.
core = 7.x
 name = Example module
description = "Gives an example of a module."
...
files[] = example.test
 dependencies[] = taxonomy
dependencies[] = comment
 package = "Your arbitrary grouping string"
WRITING COMMENTS AND IMPLEMENTING YOUR FIRST HOOK

More Related Content

PPT
Drupal Theming
PPT
Drupal 6 Overview
PDF
Олексій Калініченко — Configuration Management in Drupal8
PPT
Drupal 6 in a nutshell
PPTX
Getting started with drupal 8 code
PPTX
Functional tests in_symfony
PPTX
Ting - Un datamapper PHP sous stéroïdes
PPTX
Performance au quotidien dans un environnement symfony
Drupal Theming
Drupal 6 Overview
Олексій Калініченко — Configuration Management in Drupal8
Drupal 6 in a nutshell
Getting started with drupal 8 code
Functional tests in_symfony
Ting - Un datamapper PHP sous stéroïdes
Performance au quotidien dans un environnement symfony

Similar to Creating modules in Drupal (20)

PPTX
Developing a drupal module
PPTX
Developing a Drupal module
PDF
Intro to Drupal Module Developement
PDF
Session v1
ODP
Custom module and theme development in Drupal7
PPTX
Drupal module development
PDF
Drupal 7 Development: Beginning Module Development
PPTX
Introduction And Basics of Modules in Drupal 7
PPT
Creating Custom Drupal Modules
PPTX
Creating Drupal A Module
PDF
Dipping Your Toe into Drupal 8 Module Development
PPT
Module development
PDF
Hello Drupal!
PPTX
Ready. Set. Drupal! An Intro to Drupal 8, Part 2
DOC
Drupal6 and Drupal 7 difference
PDF
45 Modules in 45 Minutes
ODP
Intro to drupal module internals asheville
KEY
Building University Websites with the Drupal Content Management System
PPT
Something drupal this way comes
Developing a drupal module
Developing a Drupal module
Intro to Drupal Module Developement
Session v1
Custom module and theme development in Drupal7
Drupal module development
Drupal 7 Development: Beginning Module Development
Introduction And Basics of Modules in Drupal 7
Creating Custom Drupal Modules
Creating Drupal A Module
Dipping Your Toe into Drupal 8 Module Development
Module development
Hello Drupal!
Ready. Set. Drupal! An Intro to Drupal 8, Part 2
Drupal6 and Drupal 7 difference
45 Modules in 45 Minutes
Intro to drupal module internals asheville
Building University Websites with the Drupal Content Management System
Something drupal this way comes
Ad

More from Sayed Ahmed (20)

PDF
Workplace, Data Analytics, and Ethics
PPTX
Python py charm anaconda jupyter installation and basic commands
PPTX
[not edited] Demo on mobile app development using ionic framework
PPTX
Sap hana-ide-overview-nodev
PPTX
Invest wisely
PPTX
Will be an introduction to
PPTX
Whm and cpanel overview hosting control panel overview
PPTX
Web application development using zend framework
PPTX
Web design and_html_part_3
PPTX
Web design and_html_part_2
PPTX
Web design and_html
PPTX
Visual studio ide shortcuts
PPTX
Virtualization
PPT
User interfaces
PPT
Unreal
PPTX
Unit tests in_symfony
PPTX
Telerik this is sayed
PPTX
System analysis and_design
PPTX
Symfony 2
PPT
Story telling and_narrative
Workplace, Data Analytics, and Ethics
Python py charm anaconda jupyter installation and basic commands
[not edited] Demo on mobile app development using ionic framework
Sap hana-ide-overview-nodev
Invest wisely
Will be an introduction to
Whm and cpanel overview hosting control panel overview
Web application development using zend framework
Web design and_html_part_3
Web design and_html_part_2
Web design and_html
Visual studio ide shortcuts
Virtualization
User interfaces
Unreal
Unit tests in_symfony
Telerik this is sayed
System analysis and_design
Symfony 2
Story telling and_narrative
Ad

Recently uploaded (20)

PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
cuic standard and advanced reporting.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Machine Learning_overview_presentation.pptx
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Encapsulation theory and applications.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PPTX
A Presentation on Artificial Intelligence
Digital-Transformation-Roadmap-for-Companies.pptx
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Diabetes mellitus diagnosis method based random forest with bat algorithm
cuic standard and advanced reporting.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
A comparative analysis of optical character recognition models for extracting...
Per capita expenditure prediction using model stacking based on satellite ima...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Machine Learning_overview_presentation.pptx
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Building Integrated photovoltaic BIPV_UPV.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
Spectral efficient network and resource selection model in 5G networks
Chapter 3 Spatial Domain Image Processing.pdf
Encapsulation theory and applications.pdf
20250228 LYD VKU AI Blended-Learning.pptx
The AUB Centre for AI in Media Proposal.docx
A Presentation on Artificial Intelligence

Creating modules in Drupal

  • 1. CREATING MODULES IN DRUPAL 7.X Sayed Ahmed B.Sc. Eng. in Computer Science & Engineering M. Sc. in Computer Science Exploring Computing for 14+ years sayed@justetc.net http://sayed.justetc.net
  • 2. TOPICS  Creating modules - a tutorial: Drupal 7.x  Writing .info files (Drupal 7.x)  Show all errors while developing  .install and the Fields API  Drupal's code registry  Suppress caching (for development) or to use an external page cache  Using the theme layer (Drupal 7.x)
  • 3. STEPS  Getting started  Telling Drupal about your module  Writing comments and implementing your first hook  Declaring the block  Retrieving data  Generating block content  Testing and troubleshooting the module  Preparing for a module configuration form  Creating the configuration form  Validating the data  Specifying a custom permission for a new page  Adapting the query  Theming the page  Adding a 'More' link  Testing with SimpleTest  Practicing patches
  • 4. GETTING STARTED  module file name and location
  • 5. .INFO FILES  name = Module name description = A description of what your module does. core = 7.x  name = Current posts description = A block module that lists links to recent posts. core = 7.x  name = Example module description = "Gives an example of a module." ... files[] = example.test  dependencies[] = taxonomy dependencies[] = comment  package = "Your arbitrary grouping string"
  • 6. WRITING COMMENTS AND IMPLEMENTING YOUR FIRST HOOK