Index: modules/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node.module,v retrieving revision 1.467 diff -u -F^f -r1.467 node.module --- modules/node.module 21 Feb 2005 19:47:44 -0000 1.467 +++ modules/node.module 24 Feb 2005 10:41:33 -0000 @@ -684,7 +684,7 @@ function node_menu($may_cache) { 'access' => user_access('access content'), 'type' => MENU_SUGGESTED_ITEM); $items[] = array('path' => 'node/add', 'title' => t('create content'), - 'callback' => 'node_page', + 'callback' => 'node_add', 'access' => user_access('access content'), 'type' => MENU_ITEM_GROUPING, 'weight' => 1); @@ -962,7 +962,8 @@ function node_types_configure() { $type = arg(4); - $group = form_textarea(t('Explanation or submission guidelines'), $type .'_help', variable_get($type .'_help', ''), 70, 5, t('This text will be displayed at the top of the %type submission form. It is useful for helping or instructing your users.', array('%type' => node_invoke($type, 'node_name')))); + $group = form_textarea(t('Description'), $type .'_description', variable_get($type .'_description', implode("\n", module_invoke_all('help', 'node/add#'. $type))), 70, 3, t('This text will be displayed on the create content page.', array('%create_content_url' => url('node/add')))); + $group .= form_textarea(t('Explanation or submission guidelines'), $type .'_help', variable_get($type .'_help', ''), 70, 5, t('This text will be displayed at the top of the %type submission form. It is useful for helping or instructing your users.', array('%type' => node_invoke($type, 'node_name')))); $group .= form_select(t('Minimum number of words'), 'minimum_'. $type .'_size', variable_get('minimum_'. $type .'_size', 0), drupal_map_assoc(array(0, 10, 25, 50, 75, 100, 125, 150, 175, 200)), t('The minimum number of words a %type must be to be considered valid. This can be useful to rule out submissions that do not meet the site\'s standards, such as short test posts.', array('%type' => node_invoke($type, 'node_name')))); $output = form_group(t('Submission form'), $group); $output .= form_group(t('Workflow'), implode('', node_invoke_nodeapi($type, 'settings'))); @@ -1395,7 +1396,7 @@ function node_form($edit) { /** * Present a node submission form or a set of links to such forms. */ -function node_add($type) { +function node_add($type = NULL) { global $user; $edit = $_POST['edit']; @@ -1420,8 +1421,8 @@ function node_add($type) { foreach (node_list() as $type) { if (node_access('create', $type)) { $out = '