function path_export_alter in Default Content 7
Same name and namespace in other branches
- 7.2 plugins/path.inc \path_export_alter()
Handles the loading of the current path in export
File
- plugins/
path.inc, line 15
Code
function path_export_alter(&$node, &$export) {
if (isset($node->nid)) {
$path = path_load('node/' . $node->nid);
if ($path) {
$export->exported_path = $path['alias'];
}
}
}