Mercurial > defr > drupal > core
comparison modules/upload/upload.module @ 19:3edae6ecd6c6 6.9
Drupal 6.9
author | Franck Deroche <franck@defr.org> |
---|---|
date | Thu, 15 Jan 2009 10:15:56 +0100 |
parents | 589fb7c02327 |
children |
comparison
equal
deleted
inserted
replaced
18:f5131a9cd9e5 | 19:3edae6ecd6c6 |
---|---|
1 <?php | 1 <?php |
2 // $Id: upload.module,v 1.197.2.3 2008/10/08 20:12:18 goba Exp $ | 2 // $Id: upload.module,v 1.197.2.4 2009/01/12 15:30:23 goba Exp $ |
3 | 3 |
4 /** | 4 /** |
5 * @file | 5 * @file |
6 * File-handling and attaching files to nodes. | 6 * File-handling and attaching files to nodes. |
7 * | 7 * |
254 } | 254 } |
255 else { | 255 else { |
256 $form['attachments']['wrapper'] += _upload_form($node); | 256 $form['attachments']['wrapper'] += _upload_form($node); |
257 $form['#attributes']['enctype'] = 'multipart/form-data'; | 257 $form['#attributes']['enctype'] = 'multipart/form-data'; |
258 } | 258 } |
259 } | 259 $form['#submit'][] = 'upload_node_form_submit'; |
260 $form['#submit'][] = 'upload_node_form_submit'; | 260 } |
261 } | 261 } |
262 } | 262 } |
263 | 263 |
264 /** | 264 /** |
265 * Implementation of hook_nodeapi(). | 265 * Implementation of hook_nodeapi(). |