hms_field.migrate.inc in HMS Field 8
Support for the Migrate API.
File
hms_field.migrate.inc
View source
<?php
class MigrateHmsFieldHandler extends MigrateSimpleFieldHandler {
public function __construct() {
parent::__construct(array(
'value_key' => 'value',
'skip_empty' => FALSE,
));
$this
->registerTypes(array(
'hms_field',
));
}
}
function hms_field_migrate_api() {
$api = array(
'api' => 2,
);
return $api;
}
Functions
Name |
Description |
hms_field_migrate_api |
Let's tell migrate that we have implementation above.
Implements migrate hook_migrate_api(). |
Classes
Name |
Description |
MigrateHmsFieldHandler |
Migrate handler for HMS fields, so we can import values to these fields.
You should give the integer (seconds) value to the mapping. |