You are here

telephone.migrate.inc in Telephone 7

Support for migrate module

File

telephone.migrate.inc
View source
<?php

/**
 * @file
 * Support for migrate module
 */

/**
 * Implements hook_migrate_api().
 */
function telephone_migrate_api() {
  return array(
    'api' => 2,
    'field handlers' => array(
      'MigrateTelephoneFieldHandler',
    ),
  );
}

/**
 * Handler for telephone field migrations.
 */
class MigrateTelephoneFieldHandler extends MigrateSimpleFieldHandler {
  public function __construct() {
    parent::__construct();
    $this
      ->registerTypes(array(
      'telephone',
    ));
  }

}

Functions

Namesort descending Description
telephone_migrate_api Implements hook_migrate_api().

Classes

Namesort descending Description
MigrateTelephoneFieldHandler Handler for telephone field migrations.