Closed (works as designed)
Project:
Theme Settings API
Version:
5.x-2.8
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2008 at 18:36 UTC
Updated:
27 May 2008 at 18:48 UTC
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 | avpaderno |
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.