| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
// $Id: audio_import.pages.inc,v 1.4 2009/05/10 19:15:23 drewish Exp $ |
// $Id: audio_import.pages.inc,v 1.5 2009/05/14 19:07:14 drewish Exp $ |
| 4 |
|
|
| 5 |
|
|
| 6 |
function audio_import_validate_file($file) { |
function audio_import_validate_file($file) { |
| 187 |
|
|
| 188 |
function _audio_import_batch_op($args, &$context) { |
function _audio_import_batch_op($args, &$context) { |
| 189 |
// Create the node object. |
// Create the node object. |
| 190 |
if ($node = audio_api_insert($args['filepath'], $args['title'], $args['taxonomy'], $args['body'])) { |
if ($node = audio_api_insert($args['filepath'], $args['title'], $args['body'], array(), $args['taxonomy'])) { |
| 191 |
// Remove the original image now that the import has completed. |
// Remove the original image now that the import has completed. |
| 192 |
file_delete($args['filepath']); |
file_delete($args['filepath']); |
| 193 |
|
|