You are here

public function MigratePhoneFieldHandler::__construct in Phone 7

Same name and namespace in other branches
  1. 7.2 phone.migrate.inc \MigratePhoneFieldHandler::__construct()

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

./phone.migrate.inc, line 36
phone.migrate.inc Code to implement hook_content_migrate_field_alter, content_migrate_instance_alter() and content_migrate_data_record_alter() on behalf of the former phone module, moved into a separate file for efficiency.

Class

MigratePhoneFieldHandler
Wrap Migrate's simple field handler for 'phone' fields.

Code

public function __construct() {
  $this
    ->registerTypes(array(
    'phone',
  ));
}