Closed (works as designed)
Project:
Responsive images and styles
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2012 at 08:42 UTC
Updated:
19 Apr 2012 at 07:45 UTC
In the descriptions you mention full support for image fields, but the form doesn't show up in image fields.
It only works in text fields. In the code in form alter, only text is mentioned:
if ($form['#instance']['widget']['module'] == 'text') {
$form['resp_img'] = array(
'#title' => t('Responsive images and styles'),
'#type' => 'fieldset',
'#collapsible' => FALSE,
);
$form['resp_img']['use_for_resp_img'] = array(
'#type' => 'checkbox',
'#title' => t('Apply responsive images and styles to this field'),
//variable_get('resp_img_*entitytype*_*bundle*_*fieldname*, 0)
'#default_value' => variable_get('resp_img_' . $form['instance']['entity_type']['#value'] . '_' . $form['instance']['bundle']['#value'] . '_' . $form['instance']['field_name']['#value'], 0),
'#description' => t('If selected, responsive images and styles will be applied to the content of this field.'),
);
$form['#submit'][] = 'resp_img_add_entity_type_field';
}
Any idea when there'll be support for image fields? Thanks!
Comments
Comment #1
attiks commentedImage fields are automatically processed, no need for a setting
Comment #2
attiks commentedIf you meant something else, feel free to re open this