From fff06eca38ab98c0730ec0a8e3a66be4d40f5d3e Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 16 Nov 2008 18:19:46 +0000 Subject: - Patch #302054 by dmitrig01: usability improvement - hide machine readable name of node type by default. --- modules/node/content_types.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/node') diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index c82025047..ab8dfa874 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -52,6 +52,7 @@ function theme_node_admin_overview($name, $type) { * Generates the node type editing form. */ function node_type_form(&$form_state, $type = NULL) { + drupal_add_js(drupal_get_path('module', 'node') .'/content_types.js'); if (!isset($type->type)) { // This is a new type. Node module managed types are custom and unlocked. $type = node_type_set_defaults(array('custom' => 1, 'locked' => 0)); @@ -70,6 +71,7 @@ function node_type_form(&$form_state, $type = NULL) { '#default_value' => $type->name, '#description' => t('The human-readable name of this content type. This text will be displayed as part of the list on the create content page. It is recommended that this name begin with a capital letter and contain only letters, numbers, and spaces. This name must be unique.'), '#required' => TRUE, + '#field_suffix' => '  ', ); if (!$type->locked) { -- cgit v1.2.3