protected function WordPressMigrateWizard::authorForm in WordPress Migrate 7.2
Present information and options around user migration.
File
- ./
wordpress_migrate.migrate.inc, line 293
Class
Code
protected function authorForm(&$form_state) {
$form['overview'] = array(
'#prefix' => '<p>',
'#markup' => t('User accounts for authors in the WordPress blog may be
imported to Drupal. If you select <strong>Yes</strong>, any authors in
the WordPress file who do not match existing Drupal accounts (based on
email address) will have new Drupal accounts automatically created.
Note that their passwords are not imported - they must be reset after
import.<br/>
If you select <strong>No</strong>, you must choose an existing Drupal
account which will be the author of any WordPress content whose author
is not imported. '),
'#suffix' => '</p>',
);
$form['do_migration'] = array(
'#type' => 'radios',
'#title' => t('Create new users for existing WordPress content authors?'),
'#options' => array(
1 => t('Yes'),
0 => t('No'),
),
'#default_value' => 1,
);
global $user;
$form['default_author'] = array(
'#type' => 'textfield',
'#title' => t('Default content author:'),
'#default_value' => $user->name,
'#autocomplete_path' => 'user/autocomplete',
'#states' => array(
'invisible' => array(
'input[name="do_migration"]' => array(
'value' => 1,
),
),
),
);
return $form;
}