Closed (fixed)
Project:
Module Builder
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Jul 2012 at 09:16 UTC
Updated:
9 Dec 2012 at 09:50 UTC
I have a new my_module.info file with this line:
files[] = my_module.module
It is wrong because it is not working. Please see http://drupal.org/node/542202
files (Optional)
Drupal now supports a dynamic-loading code registry. To support it, all modules must now declare any code files containing class or interface declarations in the .info file, like so:
name = Really Neat Widget
...
files[] = example.test
When a module is enabled, Drupal will rescan all declared files and index all the classes and interfaces that it finds. Classes will be loaded automatically by PHP when they are first accessed.
Comments
Comment #1
joachim commentedFIxed.