Facebox

Drupal module development part 3

As the 3rd and hopefully the last part of our Drupal module development series, we're going to create the actual link function that enabled support for facebox and some test page to demonstrate our function. First of all, the purpose of this function is to add the rel attribute on any links for Facebox to recognize it. Now Drupal has this l function which is used in creating links and has a 3rd optional parameter where in we can set the rel attribute, but I'm kinda lazy so instead of doing that, we're going to create a function.

Drupal module development part 2

Last time I gave the contents for dfacebox.info file so today we'll concentrate more on dfacebox.module. The first thing we need to do is to define a constant MODULE_PATH which holds the path to our module, this way we could access our module's path easily.

Drupal module development part 1

Its been 4 days since my last post and it wasn't even related to Drupal. Before I get the feeling of breaking my promise, here's an introduction to module development in Drupal.

Syndicate content