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.
This concerns, for example, field "Title".
Notice: Undefined index: type in colorbox_node_field_formatter_settings_form_alter() (line 266 of colorbox_node/colorbox_node.module).
Comment | File | Size | Author |
---|---|---|---|
#4 | colorbox_node-add-checking_2479511-4.patch | 749 bytes | Bogomazik |
Comments
Comment #1
iLLin CreditAttribution: iLLin commentedI cannot duplicate this and I have reviewed that function:
Which follows the field_formatter_settings module hook API.
Not sure about the reference for field "title" or what that means. Can you elaborate a little bit more?
Comment #2
Bogomazik CreditAttribution: Bogomazik commentedI have Display Suite installed. When I manage display any of content type and click edit formatter settings of the field "Title" I get this notice.
"Title" isn't have $context['instance']['display'][$context['view_mode']]['type']. I think because "Title" is a property.
I added
isset($context['instance']['display'][$context['view_mode']]['type']
Does that make sense?
Comment #3
iLLin CreditAttribution: iLLin commentedYup, just haven't ran across that and I normally use isset... This is what I get for following the API instructions haha. I'll get a fix in soon.
Comment #4
Bogomazik CreditAttribution: Bogomazik commentedI`ve added the patch...
Thanks!
Comment #5
PrineShazar CreditAttribution: PrineShazar commentedIm having the same issue and patch #4 fixed it. Thank you.
I have DS installed too.
Comment #7
iLLin CreditAttribution: iLLin commented