function pmtimetracking_migrate_create_fields in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pmtimetracking/includes/pmtimetracking.migrate.inc \pmtimetracking_migrate_create_fields()
- 7.2 pmtimetracking/includes/pmtimetracking.migrate.inc \pmtimetracking_migrate_create_fields()
Creates and attaches fields to Drupal user.
2 calls to pmtimetracking_migrate_create_fields()
- pmtimetracking_install in pmtimetracking/
pmtimetracking.install - Implements hook_install().
- pmtimetracking_migrate in pmtimetracking/
includes/ pmtimetracking.migrate.inc - Helper function for migrating between pmtimetracking to drupal fields.
File
- pmtimetracking/
includes/ pmtimetracking.migrate.inc, line 52 - Migration functions for the PM Timetracking module.
Code
function pmtimetracking_migrate_create_fields(&$sandbox) {
module_load_include('inc', 'pmtimetracking', 'includes/pmtimetracking.field_base');
module_load_include('inc', 'pmtimetracking', 'includes/pmtimetracking.field_instance');
module_load_include('inc', 'pm', 'includes/pm.field');
$field_bases = pmtimetracking_default_field_bases();
pm_field_bases_create_if_required($field_bases);
$field_instances = pmtimetracking_default_field_instances();
pm_field_instances_create_if_required($field_instances);
return TRUE;
}