If you try to edit a field that does not contain a hook_field_settings implementation (for example, weburl), you'll receive the warning:

warning: array_merge() [function.array-merge]: Argument #2 is not an array in D:\xampp\htdocs\hackergames.net\modules\cck\content_admin.inc on line 530.

about the following line:

$form['field'] = array_merge($form['field'], module_invoke($field_type['module'], 'field_settings', 'form', $field));

This is a simple patch that wraps this line in a if (module_hook()) check first.

CommentFileSizeAuthor
content_admin.inc.patch768 byteswebchick
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JonBob’s picture

Status: Needs review » Fixed

I committed a more extensive version of this, and removed the settings hook implementations that did nothing. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)