SlideShare a Scribd company logo
Drupal 6 in a nutshell Topics Drupal Basics Drupal page Serve Mechanism Drupal Menu System Writing a Module Drupal theme system Drupal Beyond the Basics   Working with Databases Working with Nodes Working with files How to define a page Form API Drupal hook system(some hooks) Useful links
Drupal Page serving mechanism Index.php does all the work(don’t panic, it only loads the necessary files) The bootstrap process Initialize the configuration Early page cache Initialize the Database, session Late page cache Determine the language and path (menu system) Serve the page
Menu System Checks the site is offline or not Rebuild the menu if necessary Check the access permissions Identity the callback function Return the output form the fucntion
Writing a module Create module under sites/all/modules Needs three files yourmodule.info yourmodule.module, youremodule.install
Theme system Template engines smarty, phptal, phptemplate Create a theme Create a normal html file Create a css file Create an info file Rename files according to drupal Put variables to your tpl file. Create additional files Template file page.tpl.php, node.tpl.php etc Overriding theming fucntions
Working with databases Define database information db_query Manipulate the query in other modules Connecting to multiple databases
Working with nodes Create a node module hook_node_info() Hook_form Hook_insert Hook_update Hook_delete Cck module
Working with files Public private files Hook_file_download Upload module Image module ,cck image module for image galleries
Define a page Hook_help Hook_menu Callback function
Form Api Form work flow Hook_form Form elements Validate function Submit function Redirecting after submit Theme a form Changing form handlers
Some Hooks Hook_form_alter Hook_node_api Hook_block Hook_node_operations Hook_init Hook_perm Hook_perm Hook_user
Useful links http://api.drupal.org/api http://drupal.org/handbooks http://drupal.org/contributors-guide http://drupal.org/node/508 http://drupal.org/theme-guide http://drupal.org/handbook/customization/videocasts   http://www.lullabot.com/ http://developers.slashdot.org/

More Related Content

What's hot (20)

PPT
Local Drupal MultiSite Set-up
Manuel Felix G. Abejo Jr.
 
PPT
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
Nguyen Duc Phu
 
PDF
Word press templates
Dan Phiffer
 
ODP
Custom module and theme development in Drupal7
marif4pk
 
ODP
Running ms sql stored procedures in mule
AnilKumar Etagowni
 
PPTX
TriDUG WebFM Presentation
cgmonroe
 
DOCX
Drupal module development training delhi
unitedwebsoft
 
PDF
Installing AtoM with Ansible
Artefactual Systems - AtoM
 
PPT
Drupal Modules
Amit Kumar Singh
 
PDF
Drupal 8 Theme System: The Backend of Frontend
Acquia
 
PDF
Pre process functions in template.php
Green For All
 
ODP
Php File Upload
Hiroaki Kawai
 
PPTX
Image upload in php MySql
Ishaq Shinwari
 
PPTX
An introduction to consuming remote APIs with Drupal 7
Josh Kopel
 
PDF
CertiFUNcation 2017 Best Practices Extension Development for TYPO3 8 LTS
cpsitgmbh
 
PPTX
Creating modules in Drupal
Sayed Ahmed
 
PDF
Best practice for WordPress theme building - WordPress North East June 2021
Peacock Carter Ltd
 
DOCX
13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview
DrupalMumbai
 
PPT
Drupal @ MediaCamp Athens
Nektarios Sylligardakis
 
Local Drupal MultiSite Set-up
Manuel Felix G. Abejo Jr.
 
Hanoi php day 2008 - 05. nguyen hai nhat huy - building-restful-web-service-w...
Nguyen Duc Phu
 
Word press templates
Dan Phiffer
 
Custom module and theme development in Drupal7
marif4pk
 
Running ms sql stored procedures in mule
AnilKumar Etagowni
 
TriDUG WebFM Presentation
cgmonroe
 
Drupal module development training delhi
unitedwebsoft
 
Installing AtoM with Ansible
Artefactual Systems - AtoM
 
Drupal Modules
Amit Kumar Singh
 
Drupal 8 Theme System: The Backend of Frontend
Acquia
 
Pre process functions in template.php
Green For All
 
Php File Upload
Hiroaki Kawai
 
Image upload in php MySql
Ishaq Shinwari
 
An introduction to consuming remote APIs with Drupal 7
Josh Kopel
 
CertiFUNcation 2017 Best Practices Extension Development for TYPO3 8 LTS
cpsitgmbh
 
Creating modules in Drupal
Sayed Ahmed
 
Best practice for WordPress theme building - WordPress North East June 2021
Peacock Carter Ltd
 
13th Sep - Drupal Global Training Day by TCS - Drupal core advanced overview
DrupalMumbai
 
Drupal @ MediaCamp Athens
Nektarios Sylligardakis
 

Viewers also liked (6)

PDF
Peace Movements
Sarah Stamm
 
PPT
Multi-Lingual Multi-Site SEO Tips
guest6271d55
 
DOC
Ensayo De Prospectiva
robertoinnovacionesfca
 
PDF
Uf 2011 exhibition_guide
Le Scienze Web News
 
PPTX
8 Top SEO Tools for this Halloween Season
Ashley Bailey
 
PPT
Enrollment Update-Board of Re...
NMSU
 
Peace Movements
Sarah Stamm
 
Multi-Lingual Multi-Site SEO Tips
guest6271d55
 
Ensayo De Prospectiva
robertoinnovacionesfca
 
Uf 2011 exhibition_guide
Le Scienze Web News
 
8 Top SEO Tools for this Halloween Season
Ashley Bailey
 
Enrollment Update-Board of Re...
NMSU
 
Ad

Similar to Drupal 6 in a nutshell (20)

PDF
2007 Fsoss Drupal Under The Hood
James Walker
 
PDF
Intro to drupal_7_architecture
Hai Vo Hoang
 
PDF
13th Sep, Drupal 7 advanced training by TCS
DrupalMumbai
 
PDF
Introduction To Drupal
Lauren Roth
 
PPTX
Drupal Camp Porto - Developing with Drupal: First Steps
Luís Carneiro
 
PPT
Drupal Bootcamp Mcn2008
Robert J. Stein
 
PPT
Architecture of Drupal - Drupal Camp
Dipen Chaudhary
 
KEY
Modules Building Presentation
htyson
 
PPTX
Drupal_cubet seminar
Cubet Techno Labs
 
PDF
Learning PHP for Drupal Theming, DC Chicago 2009
Emma Jane Hogbin Westby
 
PDF
Views Style Plugins
mwrather
 
PPTX
Drupal module development
Rachit Gupta
 
PPTX
Drupal Theme Development
Web Development Montreal
 
ZIP
Drupal Development
Jeff Eaton
 
PDF
Drupal Render API
Pavel Makhrinsky
 
PDF
Introduction to Drupal - Installation, Anatomy, Terminologies
Gerald Villorente
 
ODP
Drupal 7x Installation - Introduction to Drupal Concepts
Micky Metts
 
PDF
Drupal 7 Theming - Behind the scenes
ramakesavan
 
PDF
Drupal Front End PHP
Emma Jane Hogbin Westby
 
2007 Fsoss Drupal Under The Hood
James Walker
 
Intro to drupal_7_architecture
Hai Vo Hoang
 
13th Sep, Drupal 7 advanced training by TCS
DrupalMumbai
 
Introduction To Drupal
Lauren Roth
 
Drupal Camp Porto - Developing with Drupal: First Steps
Luís Carneiro
 
Drupal Bootcamp Mcn2008
Robert J. Stein
 
Architecture of Drupal - Drupal Camp
Dipen Chaudhary
 
Modules Building Presentation
htyson
 
Drupal_cubet seminar
Cubet Techno Labs
 
Learning PHP for Drupal Theming, DC Chicago 2009
Emma Jane Hogbin Westby
 
Views Style Plugins
mwrather
 
Drupal module development
Rachit Gupta
 
Drupal Theme Development
Web Development Montreal
 
Drupal Development
Jeff Eaton
 
Drupal Render API
Pavel Makhrinsky
 
Introduction to Drupal - Installation, Anatomy, Terminologies
Gerald Villorente
 
Drupal 7x Installation - Introduction to Drupal Concepts
Micky Metts
 
Drupal 7 Theming - Behind the scenes
ramakesavan
 
Drupal Front End PHP
Emma Jane Hogbin Westby
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PPTX
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
The Builder’s Playbook - 2025 State of AI Report.pdf
jeroen339954
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
HubSpot Main Hub: A Unified Growth Platform
Jaswinder Singh
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
From Sci-Fi to Reality: Exploring AI Evolution
Svetlana Meissner
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 

Drupal 6 in a nutshell

  • 1. Drupal 6 in a nutshell Topics Drupal Basics Drupal page Serve Mechanism Drupal Menu System Writing a Module Drupal theme system Drupal Beyond the Basics Working with Databases Working with Nodes Working with files How to define a page Form API Drupal hook system(some hooks) Useful links
  • 2. Drupal Page serving mechanism Index.php does all the work(don’t panic, it only loads the necessary files) The bootstrap process Initialize the configuration Early page cache Initialize the Database, session Late page cache Determine the language and path (menu system) Serve the page
  • 3. Menu System Checks the site is offline or not Rebuild the menu if necessary Check the access permissions Identity the callback function Return the output form the fucntion
  • 4. Writing a module Create module under sites/all/modules Needs three files yourmodule.info yourmodule.module, youremodule.install
  • 5. Theme system Template engines smarty, phptal, phptemplate Create a theme Create a normal html file Create a css file Create an info file Rename files according to drupal Put variables to your tpl file. Create additional files Template file page.tpl.php, node.tpl.php etc Overriding theming fucntions
  • 6. Working with databases Define database information db_query Manipulate the query in other modules Connecting to multiple databases
  • 7. Working with nodes Create a node module hook_node_info() Hook_form Hook_insert Hook_update Hook_delete Cck module
  • 8. Working with files Public private files Hook_file_download Upload module Image module ,cck image module for image galleries
  • 9. Define a page Hook_help Hook_menu Callback function
  • 10. Form Api Form work flow Hook_form Form elements Validate function Submit function Redirecting after submit Theme a form Changing form handlers
  • 11. Some Hooks Hook_form_alter Hook_node_api Hook_block Hook_node_operations Hook_init Hook_perm Hook_perm Hook_user
  • 12. Useful links http://api.drupal.org/api http://drupal.org/handbooks http://drupal.org/contributors-guide http://drupal.org/node/508 http://drupal.org/theme-guide http://drupal.org/handbook/customization/videocasts http://www.lullabot.com/ http://developers.slashdot.org/