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; } ?>