diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-11-27 19:12:56 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-11-27 19:12:56 +0000 |
commit | 22cfc5bb2cf84d88356b50ab8f497add152d1858 (patch) | |
tree | 1c3d47f8a006b586790bc4cc4e5faaa99d2df4ae /modules/simpletest/tests | |
parent | df57e940b2a8c13eda2f169918fde5aad96a6ba6 (diff) | |
download | brdo-22cfc5bb2cf84d88356b50ab8f497add152d1858.tar.gz brdo-22cfc5bb2cf84d88356b50ab8f497add152d1858.tar.bz2 |
- Patch #561226 by fago, sun, effulgentsia, YesCT, marcingy: forms (elements) need to able to specify include files to be loaded for building.
Diffstat (limited to 'modules/simpletest/tests')
-rw-r--r-- | modules/simpletest/tests/form_test.module | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/simpletest/tests/form_test.module b/modules/simpletest/tests/form_test.module index 52cca5e18..142debf47 100644 --- a/modules/simpletest/tests/form_test.module +++ b/modules/simpletest/tests/form_test.module @@ -1506,7 +1506,8 @@ function form_test_load_include_custom($form, &$form_state) { // Specify the include file and enable form caching. That way the form is // cached when it is submitted, but needs to find the specified submit handler // in the include. - $form_state['build_info']['files'][] = array('module' => 'form_test', 'name' => 'form_test.file'); + // Filename is a bit weird here: modules/simpletest/tests/form_test.file.inc + form_load_include($form_state, 'inc', 'form_test', 'form_test.file'); $form_state['cache'] = TRUE; return $form; } |