The story module is used to create a content post type called stories. Stories are articles in their simplest form: they have a title, a teaser and a body. Stories are typically used to post news articles or as a group blog.
The story administration interface allows for complex configuration. It provides a submission form, workflow, default view permission, default edit permission, permissions for permission, and attachments. Trackbacks can also be enabled.
You can
For more information, read the configuration and customization handbook story page.
', array('%node-add-story' => url('node/add/story'), '%admin-node-configure-types' => url('admin/node/configure/types'))); } } /** * Implementation of hook_node_name(). */ function story_node_name($node) { return t('story'); } /** * Implementation of hook_perm(). */ function story_perm() { return array('create stories', 'edit own stories'); } /** * Implementation of hook_access(). */ function story_access($op, $node) { global $user; if ($op == 'create') { return user_access('create stories'); } if ($op == 'update' || $op == 'delete') { if (user_access('edit own stories') && ($user->uid == $node->uid)) { return TRUE; } } } /** * Implementation of hook_menu(). */ function story_menu($may_cache) { $items = array(); if ($may_cache) { $items[] = array('path' => 'node/add/story', 'title' => t('story'), 'access' => user_access('create stories')); } return $items; } /** * Implementation of hook_form(). */ function story_form(&$node) { $output = ''; if (function_exists('taxonomy_node_form')) { $output .= implode('', taxonomy_node_form('story', $node)); } $output .= form_textarea(t('Body'), 'body', $node->body, 60, 20, '', NULL, TRUE); $output .= filter_form('format', $node->format); return $output; } ?>