summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/field/field.form.inc4
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/field/field.form.inc b/modules/field/field.form.inc
index c3bb8bd79..7b4e88536 100644
--- a/modules/field/field.form.inc
+++ b/modules/field/field.form.inc
@@ -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);