protected function WordPressMigrateWizard::authorFormValidate in WordPress Migrate 7.2
Prepare for registration of any user-related migrations.
Parameters
array $form_state:
File
- ./
wordpress_migrate.migrate.inc, line 336
Class
Code
protected function authorFormValidate(&$form_state) {
if ($form_state['values']['do_migration']) {
$this->authorMigration = TRUE;
}
else {
$this->authorMigration = FALSE;
}
$account = user_load_by_name($form_state['values']['default_author']);
$this->defaultAuthorUid = $account->uid;
}