You are here

function _pmperson_migrate_adjust_row in Drupal PM (Project Management) 7.3

Same name and namespace in other branches
  1. 8 pmperson/includes/pmperson.migrate.inc \_pmperson_migrate_adjust_row()
  2. 7.2 pmperson/includes/pmperson.migrate.inc \_pmperson_migrate_adjust_row()

Custom function to map row values to display values.

See also

pmperson_migrate_page_callback()

2 calls to _pmperson_migrate_adjust_row()
_pmperson_migrate_get_conflicting_email_with_attached_users_table in pmperson/includes/pmperson.migrate.inc
Get list of pmnodes that has conflicting email with the attached drupal user.
_pmperson_migrate_get_conflicting_email_with_existing_users_table in pmperson/includes/pmperson.migrate.inc
Get list of pmnodes that has conlficting email with existing Drupal user.

File

pmperson/includes/pmperson.migrate.inc, line 336
Migration functions for the PM Person module.

Code

function _pmperson_migrate_adjust_row($row) {
  $user_email_form = drupal_get_form("pmperson_migrate_email_adjust_form_user_{$row->uid}", 'user', $row->uid, $row->mail);
  $row_data['user'] = $user_email_form['col_data']['#value']['user'];
  $pmperson_email_form = drupal_get_form("pmperson_migrate_email_adjust_form_pmperson_{$row->nid}", 'pmperson', $row->nid, $row->email);
  $row_data['pmperson'] = $pmperson_email_form['col_data']['#value']['pmperson'];
  $out = array(
    'person' => drupal_render($pmperson_email_form),
    'user' => drupal_render($user_email_form),
    'help' => pmperson_migrate_get_help_text($row_data),
  );
  return $out;
}