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