diff options
author | David Rothstein <drothstein@gmail.com> | 2013-12-30 20:08:14 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-12-30 20:08:14 -0500 |
commit | 9a0f28167858af0d9cb761345f36e99bc7b6c795 (patch) | |
tree | bb76a6b3ac61bf20e86e078eb4d2ddf01073ccc7 /modules/node | |
parent | 427ae621afb67ba972d35bae29a78d7d37cb411c (diff) | |
download | brdo-9a0f28167858af0d9cb761345f36e99bc7b6c795.tar.gz brdo-9a0f28167858af0d9cb761345f36e99bc7b6c795.tar.bz2 |
Issue #1876546 by plopesc, Kevin Morse | joachim: Node_type_form_validate() and node_type_form_submit() pointlessly trim machine name value.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/content_types.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/content_types.inc b/modules/node/content_types.inc index 4b722ee02..55af6670e 100644 --- a/modules/node/content_types.inc +++ b/modules/node/content_types.inc @@ -255,11 +255,11 @@ function _node_characters($length) { */ function node_type_form_validate($form, &$form_state) { $type = new stdClass(); - $type->type = trim($form_state['values']['type']); + $type->type = $form_state['values']['type']; $type->name = trim($form_state['values']['name']); // Work out what the type was before the user submitted this form - $old_type = trim($form_state['values']['old_type']); + $old_type = $form_state['values']['old_type']; $types = node_type_get_names(); @@ -288,7 +288,7 @@ function node_type_form_submit($form, &$form_state) { $type = node_type_set_defaults(); - $type->type = trim($form_state['values']['type']); + $type->type = $form_state['values']['type']; $type->name = trim($form_state['values']['name']); $type->orig_type = trim($form_state['values']['orig_type']); $type->old_type = isset($form_state['values']['old_type']) ? $form_state['values']['old_type'] : $type->type; |