function theme_uif_preview_users in User Import Framework 7
Same name and namespace in other branches
- 6 uif.admin.inc \theme_uif_preview_users()
Theme preview of all users.
1 theme call to theme_uif_preview_users()
- uif_import_form_submit in ./
uif.admin.inc - Form submission handler.
File
- ./
uif.admin.inc, line 373 - Simple, extensible user import from a CSV file.
Code
function theme_uif_preview_users($variables) {
$data = $variables['data'];
$limit = $variables['limit'];
$current = 0;
$output = '';
foreach ($data['user'] as $user_data) {
$current++;
if ($current > $limit) {
break;
}
$output .= theme('uif_preview_one_user', array(
'data' => $user_data,
));
}
if (!$output) {
$output = t('There are no users to import.');
}
return $output;
}