telephone.migrate.inc in Telephone 7
Support for migrate module
File
telephone.migrate.incView 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
Name | Description |
---|---|
telephone_migrate_api | Implements hook_migrate_api(). |
Classes
Name | Description |
---|---|
MigrateTelephoneFieldHandler | Handler for telephone field migrations. |