You are here

public function MigrateHmsFieldHandler::__construct in HMS Field 7

Same name and namespace in other branches
  1. 8 hms_field.migrate.inc \MigrateHmsFieldHandler::__construct()

This does all the work. Mainly register the field type.

Overrides MigrateSimpleFieldHandler::__construct

File

./hms_field.migrate.inc, line 17
Support for the Migrate API.

Class

MigrateHmsFieldHandler
Migrate handler for HMS fields, so we can import values to these fields. You should give the integer (seconds) value to the mapping.

Code

public function __construct() {
  parent::__construct(array(
    'value_key' => 'value',
    'skip_empty' => FALSE,
  ));
  $this
    ->registerTypes(array(
    'hms_field',
  ));
}