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.
themesettings.admin.inc
simply contains the implementation of hook_form_alter()
, which already has conditionally executed code (it works just on the theme settings form).
The hook_form_alter()
should be in the module file, and the code to include themesettings.admin.inc
should be removed at all.
Comment | File | Size | Author |
---|---|---|---|
themesettingsapi_module.patch | 6.56 KB | apaderno |
Comments
Comment #1
JohnAlbinBy conditionally including the themesettings.admin.inc file, the amount of code that needs to be parsed on every page load has been reduced.