public function FeedsUserProcessor::configForm in Feeds 7
Same name and namespace in other branches
- 6 plugins/FeedsUserProcessor.inc \FeedsUserProcessor::configForm()
- 7.2 plugins/FeedsUserProcessor.inc \FeedsUserProcessor::configForm()
Override parent::configForm().
Overrides FeedsConfigurable::configForm
File
- plugins/
FeedsUserProcessor.inc, line 123 - FeedsUserProcessor class.
Class
- FeedsUserProcessor
- Feeds processor plugin. Create users from feed items.
Code
public function configForm(&$form_state) {
$form = array();
$form['status'] = array(
'#type' => 'radios',
'#title' => t('Status'),
'#description' => t('Select whether users should be imported active or blocked.'),
'#options' => array(
0 => t('Blocked'),
1 => t('Active'),
),
'#default_value' => $this->config['status'],
);
$roles = user_roles(TRUE);
unset($roles[2]);
if (count($roles)) {
$form['roles'] = array(
'#type' => 'checkboxes',
'#title' => t('Additional roles'),
'#description' => t('Every user is assigned the "authenticated user" role. Select additional roles here.'),
'#default_value' => $this->config['roles'],
'#options' => $roles,
);
}
// @todo Implement true updating.
$form['update_existing'] = array(
'#type' => 'checkbox',
'#title' => t('Replace existing users'),
'#description' => t('If an existing user is found for an imported user, replace it. Existing users will be determined using mappings that are a "unique target".'),
'#default_value' => $this->config['update_existing'],
);
return $form;
}