O'Reilly logo

Drupal 7 Development by Example Beginner's Guide by Kurt Madel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action — developing a custom module

Now we are ready to develop a custom Drupal module for our d7dev site!

  1. Open Aptana Studio.
  2. In the sites/all/modules directory, create a new folder named custom, and then create a new folder named d7dev within that folder.
  3. Now, in the d7dev folder create two new files — d7dev.info and d7dev.module, by right-clicking on the d7dev folder and selecting New file from the contextual menu.
  4. Open the d7dev.info file, and add the required info file properties of name, description, and core, and add the optional package property as displayed in the following code snippet:
    name = d7dev
    description = Custom module for misc custom functionality.
    core = 7.x
    package = Custom
    files[] = d7dev.module
    

    Note

    Although the package ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required