Commit b3c245ec authored by drumm's avatar drumm
Browse files

#62061 by KarenS, Modules cannot set form attributes on edit form

parent 926cf39c
......@@ -1411,7 +1411,7 @@ function user_edit($category = 'account') {
if (user_access('administer users')) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'), '#weight' => 31);
}
$form['#attributes'] = array('enctype' => 'multipart/form-data');
$form['#attributes']['enctype'] = 'multipart/form-data';
drupal_set_title($account->name);
return drupal_get_form('user_edit', $form);
......
......@@ -1411,7 +1411,7 @@ function user_edit($category = 'account') {
if (user_access('administer users')) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'), '#weight' => 31);
}
$form['#attributes'] = array('enctype' => 'multipart/form-data');
$form['#attributes']['enctype'] = 'multipart/form-data';
drupal_set_title($account->name);
return drupal_get_form('user_edit', $form);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment