termstatus.migrate.inc in Taxonomy Term Status 7
Migration support for the Taxonomy Term Status module.
File
termstatus.migrate.inc
View source
<?php
class TermStatusMigrationHandler extends MigrateDestinationHandler {
public function __construct() {
$this
->registerTypes(array(
'taxonomy_term',
));
}
public function fields() {
return array(
'status' => t('The taxonomy term status (1 if published, 0 if not published).'),
);
}
}
function termstatus_migrate_api() {
$api = array(
'api' => 2,
'destination handlers' => array(
'TermStatusMigrationHandler',
),
);
return $api;
}