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.
Hi All,
I had a problem sorting images (sort images tab), when required CCK fields where enabled. I never sorted the images but gave me errors that a field was missing. I solved that problem by changing the function: function node_gallery_sort_images_form($form_state, $gallery) {
in the node_gallery.pages.inc.
In line 443 $form['files'][$key]['edit_form'][$item_key]['#type'] = 'value';
I changed it to $form['files'][$key]['edit_form'][$item_key]['#access'] = FALSE;
this I think is a more proper way to hide the form fields.
Cheers Dirk
Comments
Comment #1
dddave CreditAttribution: dddave commentedThanks for documenting your solution. As this is against NG2 I guess this issue is effectively a "won't fix" but perhaps it might help somebody.
Comment #2
justintime CreditAttribution: justintime commentedMoving to won't fix since it's on 2.x