class notes
Mini Lesson Notes on hook_perm
INTRODUCTION
Another Mini Lesson from Dimitri's famous hook Series ,(I hope he keep giving more of his MiNi hook charm to drupal-dojo) this one is about permissions and will concentrate on hook_perm. The lesson is effective n prompt as the other two and will armour developer with the basics of hook_perm in hands on approach. All you need to know at this point of class notes is that hook_perm has something to do with authorization and permissions in drupal, Rest everything you will learn as you progress in this class notes.
Mini Lesson Class Notes -- hook_form_alter (Drupal 5 based)
Introduction
Note: Although the material covered here is valid for later versions of drupal, the signature of hook_forms_alter() changed in Drupal 6, so the exact examples will not work correctly. The new signature is hook_form_alter(&$form, $form_state, $form_id)
These are class notes for dmitrig01's mini-lesson on hook_form_alter which I found very effective and useful. The lesson is based on a hands-on approach where you actually write some PHP code and see things happening in your Drupal Test Environment. This lesson concentrates on Form manipulation which can be used by module writers to write interesting modules or administrators to enhance the content of a typical installation according to their needs. Beginners are encouraged to type along with the lesson to understand better.
Drupal OSCMS Summit BOF Links & Contacts
[Note: this wiki page comes from a list that got started at the OSCMS Dojo BoF meeting on Thursday. Thanks to PearCraft (Kwame) for starting this! Feel free to add yourself and your url. --joshk]
Drupal OSCMS Summit BOF Links:
This is a list of submitted URLs that folks gave me at the Drupal Dojo BOF at the OSCMS Summit on Thursday, March 22, 2007.
Sadly, as the list was partway around the circle of Dojo attendees, the URL list morphed into a signup list with names and emails.
If you were at the BOF and would like your website on this list, please add yourself! :)
Thanks folks!
Lesson #7 and #12 Class Notes wiki -- simple jQuery magic!
jQuery background:
http://jquery.com/
http://drupal.org/node/88978
http://15daysofjquery.com/
http://www.eyecon.ro/interface/
http://visualjquery.com/index.xml
http://drupal.org/node/88978 - Using jQuery
Code from the class:
Attached is a single text file, which contains four javascript files (dojo01.js, dojo02.js, dojo03.js, dojo04.js: to be placed into the dojo module directory) together with the dojo.module file.
Lesson #5 Class Notes wiki -- Get your CVS on!
[tbd]
This lesson is not redundant with respect to the excellent handbook entries on CVS in general and in terms of using it for Drupal development. Rather it is a relatively short (and illustrated) way of providing an overview on CVS for Drupal development, with all the references in a single handy place, and all the FAQ answered.
Lesson #6 Class Notes wiki -- Theming and the Themer Pack
The first place to go for anything is the Drupal Handbooks section. Theming is no exception:
The Drupal Handbook: Customization and Theming
Go to the Customization and Theming section of the handbooks for the best basic overview of Drupal theming, and to obtain a great deal of helpful information.
The concept of theming in Drupal very much follows the MVC design pattern. See Wikipedia article on Model-View-Controller pattern. Basically it says that the way stuff looks doesn't need to be connected to what it does. So you can take some functionality that you want to use, and you can make it look the way you want it to look. Drupal does a pretty good job of this in terms of following through in separating the display logic from data processing and business logic, so to speak.
Lesson #4 Class Notes wiki -- Module Mashups!
Contribution Module Rock Star Roundup! CCK, views, panels... oh my!
Today we will be seeing what we can do, creating rich content layouts with modules such as CCK, views, panels, and how to make use of some of the core modules, such as taxonomy. And as we shall see, you can use views within panels...
Comment: It would be helpful to have an abstract of what will be accomplished, or even a demo of the end results for those who get scared browsing half way down and seeing all that code.
First step is to install the relevant modules.
Lesson #3 Class Notes wiki -- NodeAPI
[see attached file pastebin.txt, with all the coded versions of dojo.module]
NodeAPI Sunday!
Well, this is "the day after the night before" of Drupal's 6th birthday marking the release of Drupal 5.0 stable release, so... in honor of this the first thing to do is to update your sandbox development lesson playground sites to Drupal 5.0! (Just follow the all-new instructions in UPGRADE.txt).
Where we were at the end of Lesson #1
Lesson #2 Class Notes wiki -- Coding Standards, Keeping code clean
Plan
- Sound Check: make sure everyone can get on Skype and is in IRC
- Debrief: talk about how we've been doing, also about moving the regular lesson time to Sunday and/or starting other times
- Drupal Coding Standards: what they are; why they matter
- Keeping Your Code Clean: where to put stuff; how not to kludge
- Keeping Your Code Safe: how and why to use Drupal functions for text, links, input fields and database queries
- Making Your Code Intelligible: the tao of commenting
- Dojo Challenge!: review a patch for Drupal 5.0
Lesson #1 Class Notes wiki -- Drupal Basics, FormAPI and CCK
Complete Class Notes of First Lesson: read on, but also, type on, and execute on, till the end!
[Note: all code examples tested and run as advertised on my own test installation. Everyone should do exactly the same, so we are all on the same page, and can at some point even feel right at home doing patch reviews!!!]
An hour and a half screencap of the 1st lesson is also available (warning 90mb download). NOTE: link currently offline - will update this page when I find a good copy. Full transcript below the jump.

Ical feed