For best practices, administrative form code should be moved to a separate file, typically MODULE.admin.inc, so that it doesn't get loaded except when that specific page is being visited.

You specify the exact name of the file in hook_menu().

Comments

bfroehle’s picture

Status: Active » Needs review
StatusFileSize
new5.37 KB

I've attached a patch which can be applied with git am.

a.ross’s picture

Status: Needs review » Fixed

Thanks bfroehle! Fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.