This function need to be update because in this we use field_types, that produce an error with media module undefined index "field types".

So we should change "field_types" to "field types".

Now its working fantastic.

function jquery_colorpicker_field_formatter_info()
{
return array
(
'jquery_colorpicker_color_display' => array
(
'label' => t('Colored block'),
'field_types' => array('jquery_colorpicker'),
),
'jquery_colorpicker_text_display' => array
(
'label' => t('Text'),
'field_types' => array('jquery_colorpicker'),
),
);
}

Comments

govind.maloo’s picture

Status: Active » Closed (fixed)
plopesc’s picture

Status: Closed (fixed) » Closed (duplicate)

Hello

Sorry for the annoying module behavior.

However, this problem has been treated in some issues as #1233786: Undefined index: field types in field_ui_formatter_options(), #1098384: Error messages when setting the field display or #1060678: Field on node edit form doesn't respect its settings.

This is our fault, related to #1246472: Asking for administer releases for Jquery Colorpicker. When I'll be granted to roll out new releases, the problem will be solved in the next release

Please, read older issues before of post new issues.

Thanks for your interest in the module.