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