diff options
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 13fb334df..af855d7ca 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -185,6 +185,7 @@ function node_entity_info() { 'controller class' => 'NodeController', 'base table' => 'node', 'revision table' => 'node_revision', + 'path callback' => 'node_path', 'fieldable' => TRUE, 'object keys' => array( 'id' => 'nid', @@ -242,6 +243,13 @@ function node_entity_info() { } /** + * Entity path callback. + */ +function node_path($node) { + return 'node/' . $node->nid; +} + +/** * Implements hook_admin_paths(). */ function node_admin_paths() { |