Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
content_admin.inc.patch | 768 bytes | webchick |
Comments
Comment #1
JonBob CreditAttribution: JonBob commentedI committed a more extensive version of this, and removed the settings hook implementations that did nothing. Thanks.
Comment #2
(not verified) CreditAttribution: commented