Commit bb153976 authored by Dries's avatar Dries
Browse files

- Patch #279404 by chx: removed old cruft. See http://drupal.org/files/issues/fapi_award.jpg.

parent ddb9a03a
......@@ -503,6 +503,7 @@ function drupal_prepare_form($form_id, &$form, &$form_state) {
}
$form += _element_info('form');
$form += array('#tree' => FALSE, '#parents' => array());
if (!isset($form['#validate'])) {
if (drupal_function_exists($form_id . '_validate')) {
......@@ -1328,8 +1329,6 @@ function _element_info($type, $refresh = NULL) {
'#description' => NULL,
'#attributes' => array(),
'#required' => FALSE,
'#tree' => FALSE,
'#parents' => array()
);
if (!isset($cache) || $refresh) {
$cache = array();
......
Supports Markdown
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