Drupal Module Building (DrupalCon Paris)

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Drupal Module Building (DrupalCon Paris) - Presentation Transcript

    1. Make A Module A Practical Introduction to Module Development
    2. Matt Butcher Senior Programmer at Palantir.net, Author mbutcher on d.o http://twitter.com/technosophos http://technosophos.com
    3. 2009 2004
    4. Our Goal Build a Drupal module from scratch in 40 minutes or less.
    5. Our Module • One directory and two files. • Using Drupal’s hook system. • Add a new block that can be placed in one of the block regions. • Add a new “page” (menu callback).
    6. Begin with... • Module directory: paris/ • Two files: module_name.info • paris/paris.info module_name module_name.*.inc module_name.install • and others. paris/paris.module (optional) module_name.module
    7. The Info File • Contains information • Used by module system about a module to learn about the module • Plain text config file
    8. The Module File • Contains PHP code • Hook implementations live here • Often, other supporting code is here, too • Drupal loads this automatically
    9. Hooks Drupal looks for particular function patterns in module files. Functions that conform to these patterns are called “hook implementations”. http://www.flickr.com/photos/39321672@N07/3616749186/
    10. hook_block() • Use it to manage a block. • List • Display • Configure
    11. hook_menu() • Use it to register a URL pattern. • “Menu items”, in this case, are names that Drupal associates with functions.
    12. Learning More • API.Drupal.org • Handbooks on Drupal.org • Various books

    + Matt ButcherMatt Butcher, 1 month ago

    custom

    188 views, 0 favs, 0 embeds more stats

    How to make a module in Drupal. To see the "officia more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 188
      • 188 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 7
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories