function theme_uif_form_help in User Import Framework 6
Same name and namespace in other branches
- 7 uif.admin.inc \theme_uif_form_help()
Theme function for import form help.
1 theme call to theme_uif_form_help()
- uif_import_form in ./
uif.admin.inc - User import multi-part form.
File
- ./
uif.admin.inc, line 525 - Simple, extensible user import from a CSV file.
Code
function theme_uif_form_help() {
$basic_help = '<p>' . t('Choose an import file. You\'ll have a chance to preview the data before doing the import. The import file must have a header row with a name in each column for the value you are importing. The header names are not case sensitive. Importable fields include:') . '</p>';
$basic_help .= '<ul><li>' . t('email (required) - the user\'s email') . '</li>';
$basic_help .= '<li>' . t('username (optional) - a name for the user. If not provided, a name is created based on the email.') . '</li>';
$basic_help .= '<li>' . t('password (optional) - a password for the user. If not provided, a password is generated.') . '</li></ul>';
$helps = module_invoke_all('uif_help');
array_unshift($helps, $basic_help);
foreach ($helps as $help) {
$output .= '<div class="uif_help_section">' . $help . '</div>';
}
$fieldset = array(
'#type' => 'fieldset',
'#title' => t('User import help'),
'#value' => $output,
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
return theme('fieldset', $fieldset);
}