| 1 |
<?php |
<?php |
| 2 |
// $Id: filefield.module,v 1.50.2.40 2008/06/03 01:46:40 jpetso Exp $ |
// $Id: filefield.module,v 1.50.2.41 2008/07/31 15:08:14 dopry Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 860 |
* Menu callback for JavaScript-based uploads. |
* Menu callback for JavaScript-based uploads. |
| 861 |
*/ |
*/ |
| 862 |
function filefield_js() { |
function filefield_js() { |
| 863 |
|
|
| 864 |
// Parse fieldname from submit button. |
// Parse fieldname from submit button. |
| 865 |
$matches = array(); |
$matches = array(); |
| 866 |
foreach(array_keys($_POST) as $key) { |
foreach(array_keys($_POST) as $key) { |
| 897 |
$output = theme('status_messages') . drupal_render($form); |
$output = theme('status_messages') . drupal_render($form); |
| 898 |
|
|
| 899 |
// Send the updated file attachments form. |
// Send the updated file attachments form. |
| 900 |
|
$GLOBALS['devel_shutdown'] = false; |
| 901 |
print drupal_to_js(array('status' => TRUE, 'data' => $output)); |
print drupal_to_js(array('status' => TRUE, 'data' => $output)); |
| 902 |
exit(); |
exit(); |
| 903 |
} |
} |