Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Mini modules for Drupal 5.x require two files- a .info file and a .module file. These should generally be placed in a separate directory, for example under sites/all/modules. The .info file is needed for your module to show up on the admin page, while the code you want to add will be in the .module file.