18.10.2016 Views

Drupal 7 Module Development

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 1<br />

The following are a few of the features of this module:<br />

• Functions used for dumping objects and arrays into formatted <strong>Drupal</strong> output<br />

• Tools for analyzing database usage and performance<br />

• A theme tool which indicates (graphically) which elements of a page were<br />

themed by which functions or templates<br />

• A content generator for quickly populating your site with testing content<br />

Drush (the <strong>Drupal</strong> shell)<br />

Sometimes it is much easier to run some tasks with a single command in a console.<br />

Drush provides a command-line <strong>Drupal</strong> interface. It can be used to execute tasks<br />

with a few keystrokes at the console: http://drupal.org/project/drush<br />

When developing, we often have to clear caches, run specific tasks, or deploy data<br />

to a remote server. Drush can help accomplish tasks like this.<br />

Coder<br />

The Coder module provides two big features:<br />

• It can examine code for compliance against the <strong>Drupal</strong> coding standards<br />

• It can automatically convert modules from one version of <strong>Drupal</strong> to another:<br />

http://drupal.org/project/coder<br />

For those new to <strong>Drupal</strong>, it is nice to be able to have a module automatically evaluate<br />

whether or not new code follows the existing standards.<br />

Summary<br />

This chapter has been an overview of <strong>Drupal</strong> for developers. We saw what<br />

technologies <strong>Drupal</strong> uses. We looked at <strong>Drupal</strong>'s architecture. We took a cursory<br />

glance at several prominent subsystems of <strong>Drupal</strong>'s. We also got a feel of which<br />

developer-oriented tools are to be used while working with <strong>Drupal</strong>.<br />

Starting in the next chapter, we will be working with code. In fact, each of the<br />

subsequent chapters will focus on practical aspects of working with <strong>Drupal</strong>. Coming<br />

up next is an introduction to the block system, where we will write our first module.<br />

[ 23 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!