- Patch #530894 by yched: removed unneeded #cache property in fields forms.

merge-requests/26/head
Dries Buytaert 2009-07-27 20:19:20 +00:00
parent 93728e5d32
commit 0ae1c4d9b7
1 changed files with 0 additions and 4 deletions

View File

@ -36,8 +36,6 @@ function field_default_form($obj_type, $object, $field, $instance, $items, &$for
'field' => $field,
'instance' => $instance,
);
// TODO : why do we need this ?
$form['#cache'] = FALSE;
// Populate widgets with default values if we're creating a new object.
if (empty($items) && empty($id) && !empty($instance['default_value_function'])) {
@ -183,8 +181,6 @@ function field_multiple_value_form($field, $instance, $items, &$form, &$form_sta
// Add AHAH add more button, if not working with a programmed form.
if ($field['cardinality'] == FIELD_CARDINALITY_UNLIMITED && empty($form_state['programmed'])) {
// Make sure the form is cached so ahah can work.
$form['#cache'] = TRUE;
$bundle_name_url_str = str_replace('_', '-', $instance['bundle']);
$field_name_url_str = str_replace('_', '-', $field_name);