You are here

function pmissue_migrate_create_fields in Drupal PM (Project Management) 7.3

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

Creates and attaches fields to Drupal user.

1 call to pmissue_migrate_create_fields()
pmissue_install in pmissue/pmissue.install
Implements hook_install().

File

pmissue/includes/pmissue.migrate.inc, line 10
Migration helper for the PM Issue module.

Code

function pmissue_migrate_create_fields() {
  module_load_include('inc', 'pmissue', 'includes/pmissue.field_base');
  module_load_include('inc', 'pmissue', 'includes/pmissue.field_instance');
  module_load_include('inc', 'pm', 'includes/pm.field');
  $field_bases = pmissue_default_field_bases();
  pm_field_bases_create_if_required($field_bases);
  $field_instances = pmissue_default_field_instances();
  pm_field_instances_create_if_required($field_instances);
  return TRUE;
}