Form Alterations - Getting What
   You Want in Drupal Without
   Hacking
   Presented by Mark W. Jarrell   Drupal/Twitter username: attheshow

   June 28, 2009                                    Http://fleetthought.com


Sunday, June 28, 2009
What are we talking about?



   ✤   This is a “how to” session

   ✤   Modify form elements in Drupal
       created by either core modules or
       contributed modules you’ve
       installed




Sunday, June 28, 2009
Why do we need to alter forms?

   ✤   Custom functionality for our sites

   ✤   Gives us more control over how
       things appear in our forms

   ✤   Can be used to increase efficiency
       for users entering things into
       Drupal’s forms

   ✤   Example: Prepopulating the
       domain part of the email address
       for our admin who’s adding new
       users.

Sunday, June 28, 2009
Why not just hack it?



   ✤   Maintaining something that’s hacked is difficult.

   ✤   When you upgrade, you may lose your changes.

   ✤   Other community members can help you because your system conforms to
       Drupal standards.




Sunday, June 28, 2009
What do we need to make it
   happen?

   ✤   Devel module
       http://drupal.org/project/devel

       ✤   Gives us a great function for
           inspecting forms (dsm())

   ✤   Build a custom module

       ✤   We’ll call ours “dcc09”




Sunday, June 28, 2009
Demo




Sunday, June 28, 2009
Further Reading Links

   ✤   “Modifying Forms in Drupal 5 and 6”
       http://www.lullabot.com/articles/modifying-forms-5-and-6

   ✤   hook_form_alter() function
       http://api.drupal.org/api/function/hook_form_alter/6

   ✤   The D6 Form API (a.k.a. FAPI) quickstart
       http://api.drupal.org/api/file/developer/topics/forms_api.html/6

   ✤   Form API reference
       http://api.drupal.org/api/file/developer/topics/
       forms_api_reference.html/6
                                                   Photo On Intro Slide: Http://is.gd/17yFt



Sunday, June 28, 2009

More Related Content

DOCX
Blog Feedback Form Rebecca
KEY
Contrib First
PDF
Theming Your Views
PDF
FileMaker-Drupal Synchronization
PPT
Fronteers - Drupal 7 ux
PDF
Drupal 8 Configuration Management for you and your team
PDF
Drupal Global Training Day by Drupal Mumbai 6th Sep - Extending Drupal
PDF
Introduction to Composer for Drupal
Blog Feedback Form Rebecca
Contrib First
Theming Your Views
FileMaker-Drupal Synchronization
Fronteers - Drupal 7 ux
Drupal 8 Configuration Management for you and your team
Drupal Global Training Day by Drupal Mumbai 6th Sep - Extending Drupal
Introduction to Composer for Drupal

What's hot (7)

PDF
Features everywhere
DOCX
Drupal H5P
PDF
Webform 8.x 5.x - DrupalCon Baltimore
TXT
choosing content management system cms for your website
ODP
Drupal distribution
PDF
Don’t fight with windmills. Upgrade path tool from OpenY distro - Igor Karpil...
KEY
WDC - Presentation
Features everywhere
Drupal H5P
Webform 8.x 5.x - DrupalCon Baltimore
choosing content management system cms for your website
Drupal distribution
Don’t fight with windmills. Upgrade path tool from OpenY distro - Igor Karpil...
WDC - Presentation
Ad

Viewers also liked (20)

PDF
Web Accessibility Gone Wild
PPTX
Presentatie Web 2.0
PPT
Easy Web Design
PPT
Animations
PPTX
Bi Implementatie E Business
PPT
How To Use Social Networks As A Hr Tool
PDF
Teletrabajando Desde La Oficina Coworking Bar Camp
PPT
Chapter 06
PDF
My Presentation Park Lay
PDF
Deloitte publicatie cloud diner
PDF
AMSA Industry Trends
PDF
Ejercicios estadistica
PPSX
Adapt Presentation 2011 Master Slide Show
PPT
Tundra Ppt Delegado
KEY
CITI Presentation
PPT
Shmoop Overview for Teachers: Fun, Rigorous Resources for Your Classroom
PDF
budować i wykorzystywać społeczności internetowe w nowoczesnych działaniach e...
PDF
Enlace de comunicaciones por microondas ciudad universitaria (pachuca)–campus...
PPTX
Angielskie metro
Web Accessibility Gone Wild
Presentatie Web 2.0
Easy Web Design
Animations
Bi Implementatie E Business
How To Use Social Networks As A Hr Tool
Teletrabajando Desde La Oficina Coworking Bar Camp
Chapter 06
My Presentation Park Lay
Deloitte publicatie cloud diner
AMSA Industry Trends
Ejercicios estadistica
Adapt Presentation 2011 Master Slide Show
Tundra Ppt Delegado
CITI Presentation
Shmoop Overview for Teachers: Fun, Rigorous Resources for Your Classroom
budować i wykorzystywać społeczności internetowe w nowoczesnych działaniach e...
Enlace de comunicaciones por microondas ciudad universitaria (pachuca)–campus...
Angielskie metro
Ad

Similar to Form Alterations (20)

PPT
Introduction to Module Development (Drupal 7)
KEY
PDF
Drupal Roadmap 2010
PDF
Dipping Your Toe into Drupal 8 Module Development
PDF
Advanced theming
PDF
Presentation Drupal Content Management Framework
PDF
13th Sep, Drupal 7 advanced training by TCS
PPT
Advanced Module development
PDF
Drupal 6 FormAPI Presentation
PPT
Drupal Module Development
PDF
PPTX
Drupal Camp Porto - Developing with Drupal: First Steps
PDF
Build Custom Surveys and Forms Natively in Drupal Gardens
PDF
Drupal Form API 101 (PHP) - DrupalCamp LA 2012
PDF
Upgrading to Drupal 7
PDF
Custom Forms and Configuration Forms in Drupal 8
PDF
Intro to Drupal
PDF
Montreal Girl Geeks: Intro to Drupal
PDF
Girl geek-drupal-intro-jan23-2012
PDF
Drupal Theming Limitations
Introduction to Module Development (Drupal 7)
Drupal Roadmap 2010
Dipping Your Toe into Drupal 8 Module Development
Advanced theming
Presentation Drupal Content Management Framework
13th Sep, Drupal 7 advanced training by TCS
Advanced Module development
Drupal 6 FormAPI Presentation
Drupal Module Development
Drupal Camp Porto - Developing with Drupal: First Steps
Build Custom Surveys and Forms Natively in Drupal Gardens
Drupal Form API 101 (PHP) - DrupalCamp LA 2012
Upgrading to Drupal 7
Custom Forms and Configuration Forms in Drupal 8
Intro to Drupal
Montreal Girl Geeks: Intro to Drupal
Girl geek-drupal-intro-jan23-2012
Drupal Theming Limitations

More from Mark Jarrell (7)

PDF
One Man Band - Drupal Lightning Talks
KEY
Building a Mobile Drupal Site
PDF
APSU Drupal Training
PDF
APSU Drupal Training Personal
PDF
APSU Drupal Training - Personal Sites
KEY
Moving to Drupal
KEY
Building University Websites with the Drupal Content Management System
One Man Band - Drupal Lightning Talks
Building a Mobile Drupal Site
APSU Drupal Training
APSU Drupal Training Personal
APSU Drupal Training - Personal Sites
Moving to Drupal
Building University Websites with the Drupal Content Management System

Recently uploaded (20)

PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
Getting started with AI Agents and Multi-Agent Systems
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Unlock new opportunities with location data.pdf
PDF
Architecture types and enterprise applications.pdf
PDF
sustainability-14-14877-v2.pddhzftheheeeee
PDF
Developing a website for English-speaking practice to English as a foreign la...
PDF
Hybrid model detection and classification of lung cancer
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
DP Operators-handbook-extract for the Mautical Institute
PDF
A comparative study of natural language inference in Swahili using monolingua...
PPTX
Web Crawler for Trend Tracking Gen Z Insights.pptx
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
observCloud-Native Containerability and monitoring.pptx
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
Getting started with AI Agents and Multi-Agent Systems
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Enhancing emotion recognition model for a student engagement use case through...
Unlock new opportunities with location data.pdf
Architecture types and enterprise applications.pdf
sustainability-14-14877-v2.pddhzftheheeeee
Developing a website for English-speaking practice to English as a foreign la...
Hybrid model detection and classification of lung cancer
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Zenith AI: Advanced Artificial Intelligence
Taming the Chaos: How to Turn Unstructured Data into Decisions
DP Operators-handbook-extract for the Mautical Institute
A comparative study of natural language inference in Swahili using monolingua...
Web Crawler for Trend Tracking Gen Z Insights.pptx
NewMind AI Weekly Chronicles – August ’25 Week III
WOOl fibre morphology and structure.pdf for textiles
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
observCloud-Native Containerability and monitoring.pptx

Form Alterations

  • 1. Form Alterations - Getting What You Want in Drupal Without Hacking Presented by Mark W. Jarrell Drupal/Twitter username: attheshow June 28, 2009 Http://fleetthought.com Sunday, June 28, 2009
  • 2. What are we talking about? ✤ This is a “how to” session ✤ Modify form elements in Drupal created by either core modules or contributed modules you’ve installed Sunday, June 28, 2009
  • 3. Why do we need to alter forms? ✤ Custom functionality for our sites ✤ Gives us more control over how things appear in our forms ✤ Can be used to increase efficiency for users entering things into Drupal’s forms ✤ Example: Prepopulating the domain part of the email address for our admin who’s adding new users. Sunday, June 28, 2009
  • 4. Why not just hack it? ✤ Maintaining something that’s hacked is difficult. ✤ When you upgrade, you may lose your changes. ✤ Other community members can help you because your system conforms to Drupal standards. Sunday, June 28, 2009
  • 5. What do we need to make it happen? ✤ Devel module http://drupal.org/project/devel ✤ Gives us a great function for inspecting forms (dsm()) ✤ Build a custom module ✤ We’ll call ours “dcc09” Sunday, June 28, 2009
  • 7. Further Reading Links ✤ “Modifying Forms in Drupal 5 and 6” http://www.lullabot.com/articles/modifying-forms-5-and-6 ✤ hook_form_alter() function http://api.drupal.org/api/function/hook_form_alter/6 ✤ The D6 Form API (a.k.a. FAPI) quickstart http://api.drupal.org/api/file/developer/topics/forms_api.html/6 ✤ Form API reference http://api.drupal.org/api/file/developer/topics/ forms_api_reference.html/6 Photo On Intro Slide: Http://is.gd/17yFt Sunday, June 28, 2009