You are here

function pmteam_migrate_create_fields in Drupal PM (Project Management) 7.3

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

Creates and attaches fields to Drupal user.

2 calls to pmteam_migrate_create_fields()
pmteam_install in pmteam/pmteam.install
Implements hook_install().
pmteam_migrate in pmteam/includes/pmteam.migrate.inc
Helper function for migrating between PMTeam to drupal fields.

File

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

Code

function pmteam_migrate_create_fields(&$sandbox) {
  module_load_include('inc', 'pmteam', 'includes/pmteam.field_base');
  module_load_include('inc', 'pmteam', 'includes/pmteam.field_instance');
  module_load_include('inc', 'pm', 'includes/pm.field');
  $field_bases = pmteam_default_field_bases();
  pm_field_bases_create_if_required($field_bases);
  $field_instances = pmteam_default_field_instances();
  pm_field_instances_create_if_required($field_instances);
  return TRUE;
}