SlideShare a Scribd company logo
THIS IS : SAYED AHMED
SOFTWARE/WEB/MOBILE ARCHITECT/ENGINEER/DEVELOPER, TORONTO, CANADA
HTTP://SAYED.JUSTETC.NET
Welcome this is a video on
Module Development for Drupal 7
TOPICS
 Step by step module development
 Show a simple module
 Develop that module step by step
 Let’s see the module to develop..
 The module shows current posts in a block...
 The module placed at footer showing current
posts....
 Changed the position to header, so we will
see current posts at the header....
 Now how does the structure looks...
 ---a module file -> you can divide it into
multiple files i.e this file can use other files..--
-module file defines the functionality of your
module
 ---an information file
 -----both inside a folder
 -----the folder name is the module name
 Anyway..there are couple of
methods/functions...
 One method to show a help link inside
module administration
 Another method to define the block for this
module – the current posts are shown in a
block and we can place the block anywhere
from structure -> block from within Drupal
 Inside .module file
 Another method to pull the recent posts
 ---get current time, send Query to Drupal and fetch posts,
and then render posts....
 Uses a hook for sure to render....
 current_posts_block_view displays the posts
 All methods starts with the module name
 The module is placed under /sites/all/modules/ -
> this is where the custom modules reside...not
the core modules...
 Now let’s create it....
 Let’s create the module file as well
 Now create the help link in the admin
section...
 Now enable block ... Create a block so that
we can see it in the structure section..
 Use a block related hook...
 Now empty....
 Will work on adding contents to the block...
 Module names has to be unique usually...the
module method names has to be unique as
well...you can hack...but that is not the
standard
 Nothing at the footer...
 So the new module worked..
 Have fun..
 Now rest is knowing the hooks -> where and
when to inject content or functionality..
 And also rest is PHP and your basic
programming skills...
 The rest is not Drupal that much....
 Any concerns...
 http://ask.justetc.net
 Bye Bye...

More Related Content

PPTX
1 1 cisco_asa_5505_vpn
PPTX
Object oriented programming in php 5
PPTX
Communications systems and networking
PPTX
Consulting
PPT
Initiating a project
PPTX
Git hub git and internet traffic system
PPTX
Installing drupal 7
PPTX
Linux networking commands short
1 1 cisco_asa_5505_vpn
Object oriented programming in php 5
Communications systems and networking
Consulting
Initiating a project
Git hub git and internet traffic system
Installing drupal 7
Linux networking commands short

Viewers also liked (9)

PPTX
Elements of game play
PPTX
Laravel and artisan cli
PPTX
Developing php applications with netbeans ide
PPTX
How much you pay in total for a condo in 25 years
PPTX
Mobile application development for android with phonegap
PPTX
Prince2
PPTX
Lecture 06 project_cost_management
PPTX
Object oriented programming in php 5
PPT
Level design
Elements of game play
Laravel and artisan cli
Developing php applications with netbeans ide
How much you pay in total for a condo in 25 years
Mobile application development for android with phonegap
Prince2
Lecture 06 project_cost_management
Object oriented programming in php 5
Level design
Ad

Similar to Developing a Drupal module (20)

PDF
Session v1
PPTX
Drupal module development
ODP
Custom module and theme development in Drupal7
DOCX
Drupal module development training delhi
PPTX
Introduction And Basics of Modules in Drupal 7
PPTX
Creating Drupal A Module
PDF
Dipping Your Toe into Drupal 8 Module Development
PPT
Creating Custom Drupal Modules
PPTX
Creating modules in_drupal
PPTX
Creating modules in Drupal
PPT
Module development
PDF
Intro to Drupal Module Developement
PDF
Drupal training-by-ruchiwebsolutions
PPTX
Drupal by fire
PPTX
Drupal Camp Porto - Developing with Drupal: First Steps
PDF
Drupal Module Development - OSI Days 2010
PDF
Drupal Module Development
PDF
Drupal 7-api-2010-11-10
PPT
Drupal presentation
ODP
Intro to drupal module internals asheville
Session v1
Drupal module development
Custom module and theme development in Drupal7
Drupal module development training delhi
Introduction And Basics of Modules in Drupal 7
Creating Drupal A Module
Dipping Your Toe into Drupal 8 Module Development
Creating Custom Drupal Modules
Creating modules in_drupal
Creating modules in Drupal
Module development
Intro to Drupal Module Developement
Drupal training-by-ruchiwebsolutions
Drupal by fire
Drupal Camp Porto - Developing with Drupal: First Steps
Drupal Module Development - OSI Days 2010
Drupal Module Development
Drupal 7-api-2010-11-10
Drupal presentation
Intro to drupal module internals asheville
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

Recently uploaded (20)

PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Machine Learning_overview_presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Approach and Philosophy of On baking technology
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Electronic commerce courselecture one. Pdf
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Machine learning based COVID-19 study performance prediction
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Programs and apps: productivity, graphics, security and other tools
Machine Learning_overview_presentation.pptx
MYSQL Presentation for SQL database connectivity
MIND Revenue Release Quarter 2 2025 Press Release
Approach and Philosophy of On baking technology
Assigned Numbers - 2025 - Bluetooth® Document
20250228 LYD VKU AI Blended-Learning.pptx
Review of recent advances in non-invasive hemoglobin estimation
Electronic commerce courselecture one. Pdf
gpt5_lecture_notes_comprehensive_20250812015547.pdf
NewMind AI Weekly Chronicles - August'25-Week II
Reach Out and Touch Someone: Haptics and Empathic Computing
sap open course for s4hana steps from ECC to s4
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Machine learning based COVID-19 study performance prediction
Building Integrated photovoltaic BIPV_UPV.pdf
Spectral efficient network and resource selection model in 5G networks
The Rise and Fall of 3GPP – Time for a Sabbatical?

Developing a Drupal module

  • 1. THIS IS : SAYED AHMED SOFTWARE/WEB/MOBILE ARCHITECT/ENGINEER/DEVELOPER, TORONTO, CANADA HTTP://SAYED.JUSTETC.NET Welcome this is a video on Module Development for Drupal 7
  • 2. TOPICS  Step by step module development  Show a simple module  Develop that module step by step
  • 3.  Let’s see the module to develop..  The module shows current posts in a block...  The module placed at footer showing current posts....  Changed the position to header, so we will see current posts at the header....
  • 4.  Now how does the structure looks...  ---a module file -> you can divide it into multiple files i.e this file can use other files..-- -module file defines the functionality of your module  ---an information file  -----both inside a folder  -----the folder name is the module name
  • 5.  Anyway..there are couple of methods/functions...  One method to show a help link inside module administration  Another method to define the block for this module – the current posts are shown in a block and we can place the block anywhere from structure -> block from within Drupal
  • 6.  Inside .module file  Another method to pull the recent posts  ---get current time, send Query to Drupal and fetch posts, and then render posts....  Uses a hook for sure to render....  current_posts_block_view displays the posts  All methods starts with the module name  The module is placed under /sites/all/modules/ - > this is where the custom modules reside...not the core modules...
  • 7.  Now let’s create it....  Let’s create the module file as well  Now create the help link in the admin section...
  • 8.  Now enable block ... Create a block so that we can see it in the structure section..  Use a block related hook...  Now empty....  Will work on adding contents to the block...  Module names has to be unique usually...the module method names has to be unique as well...you can hack...but that is not the standard
  • 9.  Nothing at the footer...  So the new module worked..  Have fun..  Now rest is knowing the hooks -> where and when to inject content or functionality..  And also rest is PHP and your basic programming skills...  The rest is not Drupal that much....
  • 10.  Any concerns...  http://ask.justetc.net  Bye Bye...