diff --git a/link.migrate.inc b/link.migrate.inc index e1f8ada..39436f9 100644 --- a/link.migrate.inc +++ b/link.migrate.inc @@ -5,6 +5,16 @@ * Support for migrate module */ +/** + * Implements hook_migrate_api(). + */ +function link_migrate_api() { + return array( + 'api' => 2, + 'field handlers' => array('MigrateLinkFieldHandler'), + ); +} + class MigrateLinkFieldHandler extends MigrateFieldHandler { public function __construct() { $this->registerTypes(array('link_field')); diff --git a/link.module b/link.module index b5a42ab..8c94c59 100644 --- a/link.module +++ b/link.module @@ -1050,13 +1050,6 @@ function link_views_api() { } /** - * Implements hook_migrate_api(). - */ -function link_migrate_api() { - return array('api' => 2); -} - -/** * Forms a valid URL if possible from an entered address. * Trims whitespace and automatically adds an http:// to addresses without a protocol specified *