function node_uri in Drupal 7
Implements callback_entity_info_uri().
2 string references to 'node_uri'
- hook_entity_info in modules/
system/ system.api.php - Inform the base system and the Field API about one or more entity types.
- node_entity_info in modules/
node/ node.module - Implements hook_entity_info().
File
- modules/
node/ node.module, line 249 - The core that allows content to be submitted to the site. Modules and scripts may programmatically submit nodes using the usual form API pattern.
Code
function node_uri($node) {
return array(
'path' => 'node/' . $node->nid,
);
}