Commit a50bddad authored by yannickoo's avatar yannickoo Committed by tim.plunkett
Browse files

Issue #1741242 by yannickoo: Replace _dummy view mode with _custom.

parent 863b3463
......@@ -434,10 +434,10 @@ function options_form(&$form, &$form_state) {
// Provide an instance array for hook_field_formatter_settings_form().
// @todo Remove this: http://drupal.org/node/1741128.
ctools_include('fields');
$instance = ctools_fields_fake_field_instance($this->definition['field_name'], '_dummy', $formatter, $settings);
$instance = ctools_fields_fake_field_instance($this->definition['field_name'], '_custom', $formatter, $settings);
// Store the settings in a '_dummy' view mode.
$instance['display']['_dummy'] = array(
// Store the settings in a '_custom' view mode.
$instance['display']['_custom'] = array(
'type' => $format,
'settings' => $settings,
);
......@@ -446,7 +446,7 @@ function options_form(&$form, &$form_state) {
$settings_form = array('#value' => array());
$function = $formatter['module'] . '_field_formatter_settings_form';
if (function_exists($function)) {
$settings_form = $function($field, $instance, '_dummy', $form, $form_state);
$settings_form = $function($field, $instance, '_custom', $form, $form_state);
}
$form['settings'] = $settings_form;
}
......
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