i try to create custom import csv file module in drupal 6. but i received this error
warning: Missing argument 2 for module_name_import_form() in C:\xampp5.6\htdocs\hafizu97\sites\all\modules\module_name\module_name.module on line 24.
import
i've try to change db_query but still i got this error message. here my code
function module_name_import_form($form, $form_state) {
$form['notes'] = array(
'#type' => 'markup',
'#markup' => '<div class="import-notes">A few upload fiel. <ul><li>pastikan file berformat .csv</ul></li></div>',
'#upload_location' => 'public://tmp/',
);
$form['import'] = array(
'#title' => t('import'),
'#type' => 'manage_file',
'#description' => t('file akan di upload'),
'#upload_location' => 'public://tmp/',
'#upload_validators' => array(
'file_validate_extensions' => array('csv'),
),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('import'),
);
return $form;
}