function defaultcontent_url_outbound_alter_DISABLED in Default Content 7.2
Same name and namespace in other branches
- 7 defaultcontent.module \defaultcontent_url_outbound_alter_DISABLED()
Implements hook_url_outbound_alter().
changing the outbound path to the node path
File
- ./
defaultcontent.module, line 527 - Module file for the Default content module which allow export and import of default content in a Drupal site.
Code
function defaultcontent_url_outbound_alter_DISABLED(&$path, &$options, $original_path) {
if (preg_match('|node-name/(.*)|', path, $matches) && ($nid = defaultcontent_get_default($matches[1]))) {
$path = drupal_get_path_alias('node/' . $nid);
}
}