function pmissue_migrate_create_fields in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmissue/includes/pmissue.migrate.inc \pmissue_migrate_create_fields()
- 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;
}