From 7de41539df93abeea427c1aa83ee7e13684a4fc6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 18 Aug 2006 18:58:47 +0000 Subject: - Patch #77919 by chx, eaton, moshe, et al: enable programmaticaly submitted forms via the pull model. --- modules/upload/upload.module | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'modules/upload/upload.module') diff --git a/modules/upload/upload.module b/modules/upload/upload.module index bf1a130eb..38f1398da 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -81,7 +81,8 @@ function upload_menu($may_cache) { $items[] = array('path' => 'admin/settings/uploads', 'title' => t('file uploads'), 'description' => t('Control how files may be attached to content.'), - 'callback' => 'upload_admin_settings', + 'callback' => 'drupal_get_form', + 'callback arguments' => array('upload_admin_settings'), 'access' => user_access('administer site configuration'), 'type' => MENU_NORMAL_ITEM); } @@ -252,7 +253,7 @@ function upload_admin_settings() { ); } - return system_settings_form('upload_admin_settings', $form); + return system_settings_form($form); } function upload_download() { -- cgit v1.2.3