| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
/* $Id: media_mover_api.module,v 1.1.2.110.2.43 2009/03/24 02:13:35 arthuregg Exp $ */ |
/* $Id: media_mover_api.module,v 1.1.2.110.2.44 2009/03/24 21:04:07 arthuregg Exp $ */ |
| 4 |
|
|
| 5 |
|
|
| 6 |
/* |
/* |
| 2768 |
*/ |
*/ |
| 2769 |
function media_mover_api_edit_file_form($form_state, $mmfid) { |
function media_mover_api_edit_file_form($form_state, $mmfid) { |
| 2770 |
// set the title |
// set the title |
| 2771 |
drupal_set_title(t('Media Mover Edit File %id', array('%id'=> $mmfid))); |
drupal_set_title(t('Media Mover File %id', array('%id'=> $mmfid))); |
| 2772 |
// load the item |
// load the item |
| 2773 |
$item = media_mover_api_file_get($mmfid); |
$item = media_mover_api_file_get($mmfid); |
| 2774 |
// if the file isn't finished set an alert |
// if the file isn't finished set an alert |
| 2812 |
'#type' => 'markup', |
'#type' => 'markup', |
| 2813 |
'#value' => $config_table . $file_data, |
'#value' => $config_table . $file_data, |
| 2814 |
); |
); |
| 2815 |
|
|
| 2816 |
|
$form['additonal'] = array( |
| 2817 |
|
'#type' => 'markup', |
| 2818 |
|
'#value' => 'Additional data: <p><pre>'. print_r($item['data'], true) .'</pre>', |
| 2819 |
|
); |
| 2820 |
|
|
| 2821 |
$form['file']['nid'] = array( |
$form['file']['nid'] = array( |
| 2822 |
'#title' => "Node ID", |
'#title' => "Node ID", |