You are here

function path_export_alter in Default Content 7.2

Same name and namespace in other branches
  1. 7 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'];
    }
  }
}