Active
Project:
Patterns
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2011 at 20:26 UTC
Updated:
21 Apr 2011 at 19:56 UTC
Jump to comment: Most recent file
Comments
Comment #1
vaish commentedI'm assuming that you have locale module enabled already in which case it seems that patterns module failed to locate in which *.inc file your form is defined. When that happens, you need to manually specify which file to include. See: http://drupal.org/node/408960 (paragraph starting with "Many form callbacks are stored ..."). First solution is preferred and 100% accurate while the second one may fail sometimes.
As a side note, it's always a best practice to list all the modules required by your pattern in the modules section. I see you listed system module which is absolutely required by Drupal and can't be disabled while locale module is not listed although it's required by your pattern and disabled by default.
Comment #2
foufure commentedThanks for your answer! I tried to adapt my pattern according to your recommendations, but it did not seem to work: I still have the same error (the form cannot be loaded). I have the feeling, that configuring the locale module is a special case.
Explanations: the "local.inc" file is located in the general "includes" directory of drupal and not in the "locale" module directory itself. So I tried different syntaxes with the include/module/file: "../../includes/locale.inc" for example did not work.
Could you please take a look at my modified pattern in attachment and tell me if I have to define the include in an other manner or if there is another problem ?
Comment #3
vaish commentedYou are right - locale module is kind of a special case. Pattern is trying to locate include file in the Locale module's folder, not in Drupal's includes folder. Including files from Drupal's includes folder is unfortunately not supported. I'm changing this issue into feature request, but I'm not sure when I'll be able to actually work on this.
Comment #4
michaek commentedIf we decided on a format to support this, would it be:
?