As with the other modules, we will start by creating our new biography
module. As usual, we will put this module in the drupal/sites/all/modules/biography
directory. Also, as with other modules, we will immediately create the biography.info
and biography.module
files.
The biography.info
module includes nothing new or notable:
; $Id$ name = "Biography Content (Node) Type" description = "This provides a custom content type to store simple \ online biographies." core = 6.x php = 5.1
As with the other modules, we will start our biography.module
by implementing the hook_help()
hook:
<?php // $Id$ /** * Provides the biography content type. * @file */ /** * implementation of hook_help(). */ function biography_help($path, $arg) { if ($path == 'admin/help#biography') { $txt = 'A biography is a textual description of a ' .'person\'s life and works. The summary should give ' .'a brief overview of the person explaining why the ' .'person is important. The \'dates\' area should...