You are here

public function FieldHiddenMigrateFieldHandler::__construct in Field Hidden 7

Construct a simple field handler.

Parameters

$options: Array of options (rather than unamed parameters so you don't have to what TRUE or FALSE means). The following keys are used:

  • 'value_key' string with the name of the key in the fields value array.
  • 'skip_empty' Boolean indicating that empty values should not be saved.

Overrides MigrateSimpleFieldHandler::__construct

File

field_hidden_migrate/field_hidden.migrate.inc, line 11
Drupal Field Hidden module Migration integration

Class

FieldHiddenMigrateFieldHandler
Registers field hidden field types as ordinary 'value' based field types, because that suffices.

Code

public function __construct() {
  parent::__construct(array(
    'value_key' => 'value',
    'skip_empty' => FALSE,
  ));
  $this
    ->registerTypes(array(
    'field_hidden_text',
    'field_hidden_text_long',
    'field_hidden_integer',
    'field_hidden_decimal',
    'field_hidden_float',
  ));
}