function node_export_update_7303 in Node export 7.3
Combine Node export format modules directly into Node export.
File
- ./
node_export.install, line 101 - The Node export install file.
Code
function node_export_update_7303() {
// Upgraders with format modules should have the modules disabled.
if (module_exists('node_export_node_code')) {
drupal_set_message('<em>Node export node code</em> is deprecated. Please delete the ' . drupal_get_path('module', 'node_export_node_code') . ' directory from the Drupal installation.', 'warning');
module_disable(array(
'node_export_node_code',
), FALSE);
}
if (module_exists('node_export_drupal')) {
drupal_set_message('<em>Node export drupal</em> is deprecated. Please delete the ' . drupal_get_path('module', 'node_export_drupal') . ' directory from the Drupal installation.', 'warning');
module_disable(array(
'node_export_drupal',
), FALSE);
}
if (module_exists('node_export_dsv')) {
drupal_set_message('<em>Node export DSV</em> is deprecated. Please delete the ' . drupal_get_path('module', 'node_export_dsv') . ' directory from the Drupal installation.', 'warning');
module_disable(array(
'node_export_dsv',
), FALSE);
}
if (module_exists('node_export_csv')) {
drupal_set_message('<em>Node export CSV</em> is deprecated. Please delete the ' . drupal_get_path('module', 'node_export_csv') . ' directory from the Drupal installation.', 'warning');
module_disable(array(
'node_export_csv',
), FALSE);
}
if (module_exists('node_export_json')) {
drupal_set_message('<em>Node export JSON</em> is deprecated. Please delete the ' . drupal_get_path('module', 'node_export_json') . ' directory from the Drupal installation.', 'warning');
module_disable(array(
'node_export_json',
), FALSE);
}
if (module_exists('node_export_serialize')) {
drupal_set_message('<em>Node export serialize</em> is deprecated. Please delete the ' . drupal_get_path('module', 'node_export_serialize') . ' directory from the Drupal installation.', 'warning');
module_disable(array(
'node_export_serialize',
), FALSE);
}
if (module_exists('node_export_xml')) {
drupal_set_message('<em>Node export XML</em> is deprecated. Please delete the ' . drupal_get_path('module', 'node_export_xml') . ' directory from the Drupal installation.', 'warning');
module_disable(array(
'node_export_xml',
), FALSE);
}
return 'Node export format modules removed, functionality moved to Node export.';
}