node_example_node_name

Versions
4.6
node_example_node_name($node)

Implementation of hook_node_name().

This is a required node hook. Since our module only defines one node type, we won't implement hook_node_types(), and our hook_node_name() implementation simply returns the translated name of the node type.

Code

developer/examples/node_example.module, line 49

<?php
function node_example_node_name($node) {
  return t('example node');
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.