0
모듈 구성 섹션에서 파일 업로드를 처리하려면 어떻게해야합니까? 여기까지 내가 지금까지 가지고있는 것이있다. 당신은 당신을 위해 대부분의 처리를 할 것 managed_file
유형 대신 드루팔을 사용하는 경우drupal 모듈 구성 프로세스 업로드 파일
<?php
function dc_staff_directory_admin_settings()
{
$form['dc_staff_directory_upload_file'] = array(
'#type' => 'file',
'#title' => t('Upload staff directory excel (.xls) file'),
'#description' => t('Uploading a file will replace the current staff directory'),
);
$form['#submit'][] = 'dc_staff_directory_process_uploaded_file';
return system_settings_form($form);
}
function dc_staff_directory_process_uploaded_file($form, &$form_state)
{
//What can I do here to get the file data?
}