| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
/* $Id: media_mover_api.module,v 1.1.2.110.2.68 2009/10/30 15:23:00 arthuregg Exp $ */ |
/* $Id: media_mover_api.module,v 1.1.2.110.2.69 2009/11/01 15:58:06 arthuregg Exp $ */ |
| 4 |
|
|
| 5 |
|
|
| 6 |
/* |
/* |
| 2487 |
'#value' => $cid, |
'#value' => $cid, |
| 2488 |
); |
); |
| 2489 |
|
|
| 2490 |
|
|
| 2491 |
|
|
| 2492 |
return confirm_form( |
return confirm_form( |
| 2493 |
$form, |
$form, |
| 2494 |
t('Are you sure you want to delete this configuration?'), |
t('Are you sure you want to delete this configuration?'), |
| 2958 |
|
|
| 2959 |
// delete the file cache for this node |
// delete the file cache for this node |
| 2960 |
if ($file['nid']) { |
if ($file['nid']) { |
| 2961 |
cache_clear_all('media_mover_files_node_'. $file['nid'], 'cache_media_mover'); |
cache_clear_all('media_mover_files_node_'. $file['nid'], 'cache_media_mover', true); |
| 2962 |
} |
} |
| 2963 |
// now delete the file from the db |
// now delete the file from the db |
| 2964 |
db_query('DELETE FROM {media_mover_files} WHERE mmfid = %d', $form['mmfid']['#value']); |
db_query('DELETE FROM {media_mover_files} WHERE mmfid = %d', $form['mmfid']['#value']); |