You are here

function _pmteam_migrate_load_data in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 pmteam/includes/pmteam.migrate.inc \_pmteam_migrate_load_data()
  2. 7.2 pmteam/includes/pmteam.migrate.inc \_pmteam_migrate_load_data()

Helper function to load either pmperson or pmorganization data.

1 call to _pmteam_migrate_load_data()
_pmteam_migrate_migrate_single_node in pmteam/includes/pmteam.migrate.inc
Helper function to migrate single pmteam.

File

pmteam/includes/pmteam.migrate.inc, line 154
Migration functions for the PM Team module.

Code

function _pmteam_migrate_load_data($type, $nid) {
  $result = db_select($type, 'row')
    ->fields('row')
    ->condition('nid', $nid)
    ->execute()
    ->fetchObject();
  return $result;
}