function theme_user_import_edit_form in User Import 5.2
Same name and namespace in other branches
- 5 user_import.module \theme_user_import_edit_form()
File
- ./
user_import.module, line 912 - Import users from a comma separated file (csv).
Code
function theme_user_import_edit_form($form) {
$header = array(
t('csv column'),
t('Drupal fields'),
t('username'),
t('abbreviate'),
);
foreach (element_children($form['field_match']) as $key) {
$rows[] = array(
drupal_render($form['field_match'][$key]['csv']),
drupal_render($form['field_match'][$key]['field_match']),
drupal_render($form['field_match'][$key]['username']),
drupal_render($form['field_match'][$key]['abbreviate']),
);
}
$form['field_match']['#value'] = theme('table', $header, $rows);
$output .= drupal_render($form['remove']);
$output .= drupal_render($form['options']);
$output .= drupal_render($form['field_match']);
$output .= drupal_render($form);
return $output;
}