function taxonomy_xml_import in Taxonomy import/export via XML 6.2
Same name and namespace in other branches
- 5.2 taxonomy_xml.module \taxonomy_xml_import()
- 5 taxonomy_xml.module \taxonomy_xml_import()
- 6 taxonomy_xml.module \taxonomy_xml_import()
Menu callback for the import page.
1 string reference to 'taxonomy_xml_import'
- taxonomy_xml_menu in ./
taxonomy_xml.module - Implementation of hook_menu: Define menu links.
File
- ./
taxonomy_xml.module, line 307 - This module makes it possible to import and export taxonomies as XML documents.
Code
function taxonomy_xml_import() {
if (module_exists('pathauto')) {
$pathauto_taxonomy_pattern = variable_get("pathauto_taxonomy_pattern", '');
if (!empty($pathauto_taxonomy_pattern)) {
drupal_set_message(t('
Pathauto has been profiled to slow down the import process by over 50%.
If you are doing large updates, it really needs to be turned off during that process.
This module will now <em>unset</em> the "Default path pattern" so that it has a hope of doing its job.
See <a href="!pathauto_settings">Pathauto settings</a> to review your settings.', array(
'!pathauto_settings' => url('admin/build/path/patterns'),
)), 'warning');
variable_set("pathauto_taxonomy_pattern", '');
}
}
return drupal_get_form('taxonomy_xml_import_form');
}