| 1 |
<?php |
<?php |
| 2 |
// $Id: photos.edit.inc,v 1.1.2.1 2009/03/06 08:22:41 eastcn Exp $ |
// $Id: photos.edit.inc,v 1.1.2.2 2009/03/10 02:18:59 eastcn Exp $ |
| 3 |
function photos_edit_upload(){ |
function photos_edit_upload(){ |
| 4 |
global $user; |
global $user; |
| 5 |
$header = array( |
$header = array( |
| 266 |
'#required' => TRUE |
'#required' => TRUE |
| 267 |
); |
); |
| 268 |
}else{ |
}else{ |
| 269 |
$uploadInfo = t('@name in !time upload to @title', array('@name' => theme('username', $image['user']), '!time' => format_date($image['timestamp'], 'small'), '@title' => l($image['title'], 'node/'.$image['pid']))); |
$uploadInfo = t('!name in !time upload to !title', array('!name' => theme('username', $image['user']), '!time' => format_date($image['timestamp'], 'small'), '!title' => l($image['title'], 'node/'.$image['pid']))); |
| 270 |
} |
} |
| 271 |
$form['photos'][$image['fid']]['time']['#value'] = $uploadInfo; |
$form['photos'][$image['fid']]['time']['#value'] = $uploadInfo; |
| 272 |
$form['photos'][$image['fid']]['uid'] = array('#type' => 'hidden', '#default_value' => $image['uid']); |
$form['photos'][$image['fid']]['uid'] = array('#type' => 'hidden', '#default_value' => $image['uid']); |