--- drupal7-1/modules/node/node.pages.inc 2009-04-15 09:28:08.000000000 -0400 +++ drupal7/modules/node/node.pages.inc 2009-04-20 08:38:00.000000000 -0400 @@ -23,7 +23,14 @@ function node_add_page() { if (count($content) == 1) { $item = array_shift($content); drupal_goto($item['href']); - } + } else { + //Generate links to edit content type if user has proper permissions + if (user_access('administer content types')) { + foreach ($content as $key => $item) { + $content[$key]['edit_href'] = str_replace('node/add', 'admin/build/node-type', $item['href']); + } + } + } return theme('node_add_list', $content); } @@ -38,8 +44,10 @@ function theme_node_add_list($content) { if ($content) { $output = '
'; foreach ($content as $item) { - $output .= '
' . l($item['title'], $item['href'], $item['localized_options']) . '
'; - $output .= '
' . filter_xss_admin($item['description']) . '
'; + $output .= '
' . l($item['title'], $item['href'], $item['localized_options']) . '
'; + $output .= '
' . filter_xss_admin($item['description']); + $output .= isset($item['edit_href']) ? ' ('.l(t('Edit Content Type'), $item['edit_href']).')' : ''; + $output .= ''; } $output .= '
'; }