Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Module Development 101 (Drupal)

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

Module Development 101 (Drupal)

Shrop takes you through the basics of developing modules for Drupal 7.

Topics to include:

* Setting up a new module
* Drupal coding standards
* Contributing to a module on drupal.org

Presented at the Charlotte Drupal User Group on September 14th, 2013.
http://www.meetup.com/charDUG/events/99779022/

Avatar for Mark Shropshire

Mark Shropshire

September 14, 2013

More Decks by Mark Shropshire

Other Decks in Technology

Transcript

  1. Welcome! • About me • About CharDUG • Restrooms, WIFI,

    and break room • What are we covering today? • 10 minute breaks every 50 minutes
  2. Development Environments • Local development - Acquia Dev Desktop http://www.acquia.com/downloads

    • Remote development - webenabled.com http://webenabled.com • Use your own method to get Drupal 7 running on your computer • Don’t worry about having your computer setup. Just follow along!
  3. Module Development Links • Module Developer's Guide https://drupal.org/developing/modules • API

    Reference https://api.drupal.org/api/drupal • Working with the Drupal API https://drupal.org/node/326 • Examples Project https://drupal.org/project/examples
  4. Module Development Examples • Callsign Lookup module https://drupal.org/sandbox/shrop/2088791 https://github.com/shrop/callsign_lookup •

    What are Hooks? • Drupal Bootstrap • Understanding the hook system for Drupal modules https://drupal.org/node/292
  5. Module Development Examples • Callsign Lookup module https://drupal.org/sandbox/shrop/2088791 https://github.com/shrop/callsign_lookup •

    Form API https://api.drupal.org/api/drupal/developer%21topics %21forms_api_reference.html/7
  6. Module Development Examples • Callsign Lookup module https://drupal.org/sandbox/shrop/2088791 https://github.com/shrop/callsign_lookup •

    Form API https://api.drupal.org/api/drupal/developer%21topics %21forms_api_reference.html/7
  7. Module Development Examples • Callsign Lookup module https://drupal.org/sandbox/shrop/2088791 https://github.com/shrop/callsign_lookup •

    Submit and validate functions • Private functions (Please don’t use me. It’s for your own good.
  8. Module Development Examples • Callsign Lookup module https://drupal.org/sandbox/shrop/2088791 https://github.com/shrop/callsign_lookup •

    Debugging • Coder module • Example $ drush coder --minor --comment --i18n --security --sql --style callsign_lookup
  9. Contributing to Drupal • Contribute https://drupal.org/contribute • Create an account

    on drupal.org • Learn about git • Git Immersion http://gitimmersion.com
  10. Drupal 8 • Symfony components/More OOP (Object Oriented Programming) •

    Creating Drupal 8.x modules https://drupal.org/node/1915030 • Drupal 8 Module Development, Part 1: Getting Started http://getlevelten.com/blog/ian-whitcomb/drupal-8-module-development- part-1-getting-started • Webchick’s Drupal 8 articles http://webchick.net/taxonomy/term/63 • D8CX http://d8cx.org
  11. Need Help? • #chardug on irc.freenode.net • Attend a Drupal

    Roundtable, Lunch Camp, or TechCLT Coworking Day. • http://chardug.org