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.
field_collection.module
line 783.
I believe field_collection_item_is_translatable has been put onto the wrong array.
$elements['edit'] = array(
'#type' => 'textfield',
'#title' => t('Edit link title'),
'#default_value' => $settings['edit'],
'#description' => t('Leave the title empty, to hide the link.'),
'#access' => field_collection_item_is_translatable(),
);
$elements['translate'] = array(
'#type' => 'textfield',
'#title' => t('Translate link title'),
'#default_value' => $settings['translate'],
'#description' => t('Leave the title empty, to hide the link.'),
);
should be
$elements['edit'] = array(
'#type' => 'textfield',
'#title' => t('Edit link title'),
'#default_value' => $settings['edit'],
'#description' => t('Leave the title empty, to hide the link.'),
);
$elements['translate'] = array(
'#type' => 'textfield',
'#title' => t('Translate link title'),
'#default_value' => $settings['translate'],
'#description' => t('Leave the title empty, to hide the link.'),
'#access' => field_collection_item_is_translatable(),
);
Comment | File | Size | Author |
---|---|---|---|
#2 | fix_edit_link_formatter_not_displaying-2816871-2.patch | 855 bytes | tom.hadkiss |
Comments
Comment #2
tom.hadkiss CreditAttribution: tom.hadkiss commentedComment #4
jmuzz CreditAttribution: jmuzz commentedNice catch. Thanks for the fix.