? .DS_Store ? content-type-js.patch ? node-content_type_overview-X-0.patch ? modules/node/content_types.js ? sites/default/files ? sites/default/settings.php Index: modules/node/content_types.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/node/content_types.inc,v retrieving revision 1.57 diff -u -p -r1.57 content_types.inc --- modules/node/content_types.inc 16 Jul 2008 21:59:27 -0000 1.57 +++ modules/node/content_types.inc 31 Aug 2008 04:42:38 -0000 @@ -12,18 +12,14 @@ function node_overview_types() { $types = node_get_types(); $names = node_get_types('names'); - $header = array(t('Name'), t('Type'), t('Description'), array('data' => t('Operations'), 'colspan' => '2')); + $header = array(t('Name'), array('data' => t('Operations'), 'colspan' => '2')); $rows = array(); foreach ($names as $key => $name) { $type = $types[$key]; if (node_hook($type, 'form')) { $type_url_str = str_replace('_', '-', $type->type); - $row = array( - check_plain($name), - check_plain($type->type), - filter_xss_admin($type->description), - ); + $row = array(theme('node_admin_overview', $name, $type)); // Set the edit column. $row[] = array('data' => l(t('edit'), 'admin/build/node-type/' . $type_url_str)); @@ -45,6 +41,13 @@ function node_overview_types() { return theme('table', $header, $rows); } +function theme_node_admin_overview($name, $type) { + $output = check_plain($name); + $output .= ' (Machine name: '. check_plain($type->type) .')'; + $output .= '
'. filter_xss_admin($type->description) .'
'; + return $output; +} + /** * Generates the node type editing form. */ @@ -78,7 +81,7 @@ function node_type_form(&$form_state, $t if (!$type->locked) { $form['identity']['type'] = array( - '#title' => t('Type'), + '#title' => t('Machine Name'), '#type' => 'textfield', '#default_value' => $type->type, '#maxlength' => 32, @@ -92,7 +95,7 @@ function node_type_form(&$form_state, $t '#value' => $type->type, ); $form['identity']['type_display'] = array( - '#title' => t('Type'), + '#title' => t('Machine Name'), '#type' => 'item', '#markup' => theme('placeholder', $type->type), '#description' => t('The machine-readable name of this content type. This field cannot be modified for system-defined content types.'), Index: modules/node/node.module =================================================================== RCS file: /cvs/drupal/drupal/modules/node/node.module,v retrieving revision 1.972 diff -u -p -r1.972 node.module --- modules/node/node.module 21 Aug 2008 19:36:37 -0000 1.972 +++ modules/node/node.module 31 Aug 2008 04:42:39 -0000 @@ -135,6 +135,9 @@ function node_theme() { 'node_submitted' => array( 'arguments' => array('node' => NULL), ), + 'node_admin_overview' => array( + 'arguments' => array('name' => NULL, 'type' => NULL), + ), ); }