My first Drupal Module

Events happening in the community are now at Drupal community events on www.drupal.org.
indytechcook's picture

I did it. A huge milestone in my Drupal development life. I completed my first custom module. While at this point it would only work on my site (I hard coded the name of content types and some other variables from the notification module) but it works. I have attached it but know that you can’t just add it to your site. At minimum you might have to change the name of the feed-item content type on line 85.

notification_block.zip

What it does: Add a block with a drop down. The drop down contains the name of the Feed and all taxonomy terms for that node. If the node type is the feed item (Post) then it pulls the parent feed and puts it in the list.

I’m using this basic setup as an interface for the users to add subscriptions. Please comment on the idea.

Now I basically have to rewrite the entire thing and pull the feedapi and notification options and type from the modules functions before I can release this on drupal.com. I’ll probably end up adding in some jscript effects to make it pop.

I know this is a simple module but it goes to show that after a month of picking up Drupal, a custom module can be accomplished.

Comments

Can you post an example

joshmiller's picture

Can you post an example link?

I'd love to give you some feedback...

MJ

Site Up

indytechcook's picture

Ok. I have the pre-alpha version up. The custom block is in the upper right corner when needed. I still have alot of work to do including more theming and attaching users to the feeds. But you can get the general idea for the site.

http://blogsofindy.com

I'm keeping a blog of my progress for blog of indy. http://techcook.net/category/tech/web-design/indy-blogs/

Indiana

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: