Commit 2cfca913 authored by Dries's avatar Dries

- Patch #878952 by sun: () not passed by reference to hook_field_formatter_settings_form().

parent 155d2c1d
......@@ -817,7 +817,8 @@ function field_ui_display_overview_form($form, &$form_state, $entity_type, $bund
// We are currently editing this field's formatter settings. Display the
// settings form and submit buttons.
$table[$name]['settings_edit_form'] = array();
$additions = module_invoke($formatter['module'], 'field_formatter_settings_form', $field, $instance, $view_mode, $form, $form_state);
$function = $formatter['module'] . '_field_formatter_settings_form';
$additions = $function($field, $instance, $view_mode, $form, $form_state);
if (is_array($additions)) {
$table[$name]['settings_edit_form'] = array(
'#type' => 'container',
......
Markdown is supported
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