Hi there, I love this module!! But I found a bug and it's killin me :(
Under Administer › Content management › Content types: While on the configuration page for one of my CCK-created content types, there is a setting at the bottom:
Display attachments inline automatically:
Disabled
Only in teaser
Only in body
In teaser and body
I desperately need to set "Only in Body" but every time I do and submit, it defaults to "Disabled" again.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | inline.module_1.patch | 1.29 KB | sun |
Comments
Comment #1
sunPlease test the attached patch.
Comment #2
sunCommitted to HEAD and DRUPAL-5.
Comment #3
(not verified) commentedComment #4
dgh commentedhello i have exactly the same problem but my file is already in this form :
function inline_form_alter($form, $form_state, $form_id) {
if ($form_id == 'node_type_form') {
$node_type = $form['orig_type']['#value'];
$form['workflow']['upload_inline'] = array(
'#type' => 'radios',
'#title' => t('Display attachments inline automatically'),
'#default_value' => variable_get('upload_inline_'. $node_type, 0),
'#options' => array(
0 => t('Disabled'),
1 => t('Only in teaser view'),
2 => t('Only in body view'),
3 => t('In teaser and body view')),
'#description' => t('Choose whether uploaded images should be shown inline automatically. Make sure you set the dimensions at !settings_url', array('!settings_url' => l(t('inline settings'), 'admin/settings/inline'))),
);
}
}
i cannot change this field :
Display attachments inline automatically:
Disabled
Only in teaser
Only in body
In teaser and body
i searched during hours but didn't found anything that could help me, this is the only post and i cannot do anything with :(
Comment #5
dgh commented