pathauto.inc in Migrate Extras 6.2
Same filename and directory in other branches
Support for the Pathauto module.
File
pathauto.incView source
<?php
/**
* @file
* Support for the Pathauto module.
*/
/**
* Field handler.
*/
class MigratePathautoHandler extends MigrateDestinationHandler {
public function __construct() {
$this
->registerTypes(array(
'node',
'user',
'taxonomy_term',
));
}
/**
* Make the destination field visible.
*/
public function fields() {
if (module_exists('pathauto')) {
return array(
'pathauto_perform_alias' => t('Pathauto: Perform aliasing (set to 0 to prevent alias generation during migration'),
);
}
else {
return array();
}
}
}
Classes
Name | Description |
---|---|
MigratePathautoHandler | Field handler. |