From 847304a2934b062544e87160ec8524e9275e8247 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 12 May 2009 08:37:45 +0000 Subject: - Patch #353069 by Moshe Weitzman, dmitrig01: make drupal_get_form() return unrendered forms. --- modules/trigger/trigger.admin.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/trigger') diff --git a/modules/trigger/trigger.admin.inc b/modules/trigger/trigger.admin.inc index 7d6c2621e..02f9cff9d 100644 --- a/modules/trigger/trigger.admin.inc +++ b/modules/trigger/trigger.admin.inc @@ -21,17 +21,17 @@ function trigger_assign($type = NULL) { drupal_goto('admin/build/trigger/node'); } - $output = ''; + $build = array(); $hooks = module_invoke_all('hook_info'); foreach ($hooks as $module => $hook) { if (isset($hook[$type])) { foreach ($hook[$type] as $op => $description) { $form_id = 'trigger_' . $type . '_' . $op . '_assign_form'; - $output .= drupal_get_form($form_id, $type, $op, $description['runs when']); + $build[$form_id] = drupal_get_form($form_id, $type, $op, $description['runs when']); } } } - return $output; + return $build; } /** -- cgit v1.2.3