function uif_configuration_page in User Import Framework 7
User Import Framework configuration page.
1 string reference to 'uif_configuration_page'
- uif_menu in ./
uif.module - Implementation of hook_menu().
File
- ./
uif.admin.inc, line 1084 - Simple, extensible user import from a CSV file.
Code
function uif_configuration_page() {
$form = array(
'uif_field_delimiter' => array(
'#type' => 'select',
'#title' => t('Field delimiter'),
'#default_value' => variable_get('uif_field_delimiter', ','),
'#options' => uif_field_delimiters(),
'#description' => t('Select default field delimiter. Comma is typical for CSV export files.'),
),
'uif_value_delimiter' => array(
'#type' => 'select',
'#title' => t('Value delimiter'),
'#default_value' => variable_get('uif_value_delimiter', '|'),
'#options' => uif_value_delimiters(),
'#description' => t('Select default value delimiter for fields receiving multiple values.'),
),
'uif_users_to_preview' => array(
'#type' => 'select',
'#title' => t('Users to preview'),
'#default_value' => variable_get('uif_users_to_preview', 10),
'#options' => uif_options_users_to_preview(),
'#description' => t('Default value for number of users to preview before importing. Note: If you run out of memory set this lower or increase your memory.'),
),
'uif_notify' => array(
'#type' => 'checkbox',
'#title' => t('Notify new users of account'),
'#default_value' => variable_get('uif_notify', FALSE),
'#description' => t('If checked, each newly created user will receive the <em>Welcome, new user created by administrator</em> email using the template on the <a href="@url1">user settings page</a>. This is the same email sent for <a href="@url2">admin-created accounts</a>.', array(
'@url1' => url('admin/user/settings'),
'@url2' => url('admin/user/user/create'),
)),
),
);
return system_settings_form($form);
}