From 22cfc5bb2cf84d88356b50ab8f497add152d1858 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 27 Nov 2010 19:12:56 +0000 Subject: - Patch #561226 by fago, sun, effulgentsia, YesCT, marcingy: forms (elements) need to able to specify include files to be loaded for building. --- modules/simpletest/tests/form_test.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/simpletest/tests') 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; } -- cgit v1.2.3