More of an FYI - I have my imagefields pointing to a type of "File" rather than "Image", so the code below does not work in that case (although it's easy enough to change). It sounds like the "type" image is removed in the current dev version of imagefield so I think

$field['module'] == 'imagefield' will need to be replaced with $field['module'] == 'filefield'

Perhaps you could check for either now :)

function aurigma_fieldlist() {
  $fields = (content_fields());
  foreach ($fields as $field) {
    if ($field['module'] == 'imagefield' && $field['active'] && $field['multiple']) {
      $fieldlist[$field['field_name']] = $field['field_name'];
    }
  }
  return $fieldlist;
}

#400028: Select a field type - Image or File

Comments

awolfey’s picture

Interesting. Good catch. So if I understand correctly, a filefield can use the image widget, and the imagefield can use the image widget, and the result is the same. I tried your fix and it works I'll go with checking for both for now.

awolfey’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.