diff options
author | Dries Buytaert <dries@buytaert.net> | 2008-11-16 18:19:46 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2008-11-16 18:19:46 +0000 |
commit | fff06eca38ab98c0730ec0a8e3a66be4d40f5d3e (patch) | |
tree | 25517322bdff0f1ae643df5c15ac2ca473adc37e /modules | |
parent | 5fbdca023f6aa66563ef362afd65908aeb2e3a14 (diff) | |
download | brdo-fff06eca38ab98c0730ec0a8e3a66be4d40f5d3e.tar.gz brdo-fff06eca38ab98c0730ec0a8e3a66be4d40f5d3e.tar.bz2 |
- Patch #302054 by dmitrig01: usability improvement - hide machine readable name of node type by default.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/node/content_types.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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 <em>create content</em> page. It is recommended that this name begin with a capital letter and contain only letters, numbers, and <strong>spaces</strong>. This name must be unique.'), '#required' => TRUE, + '#field_suffix' => ' <small id="node-type-name-suffix"> </small>', ); if (!$type->locked) { |