From the course: Drupal 7 Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Programming modules

Programming modules - Drupal Tutorial

From the course: Drupal 7 Essential Training

Start my 1-month free trial

Programming modules

This video won't show you everything you need to know to program a professional quality module. That's a process that takes weeks or years, depending on how much you already know. Instead, I'll show you just how to get started and give you some pointers for learning more. First, we have to distinguish what we mean by programming. It is possible to put simple functions into your site by enabling the PHP module. And I showed you a little of that in the video about using text formats to prevent damaging content, but there are three problems with that. First, when you enable that PHP filter, it's a security problem and I showed that in the earlier video. Second, you're going to be limited in what you can do in this way. Complex code interaction is very hard or even impossible. Third, all programming that you do this way get stored as content in your database, and then it's not really easily portable to other sites. A much better solution is to create a module. Now normally when we install…

Contents