Index: inline_upload.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/inline/Attic/inline_upload.module,v retrieving revision 1.1.2.5 diff -u -p -r1.1.2.5 inline_upload.module --- inline_upload.module 17 Aug 2008 14:44:59 -0000 1.1.2.5 +++ inline_upload.module 17 Aug 2008 15:47:16 -0000 @@ -339,18 +339,17 @@ function theme_inline_upload_img($file, * Allows to enable/disable auto-inline support for each content type. */ function inline_upload_form_alter($form_id, &$form) { - if ($form_id == 'node_type_form') { - $node_type = $form['orig_type']['#value']; + if ($form_id == 'node_type_form' && isset($form['identity']['type'])) { $form['workflow']['upload_inline_upload'] = array( '#type' => 'radios', '#title' => t('Display attachments inline automatically'), - '#default_value' => variable_get('upload_inline_upload_'. $node_type, 0), + '#default_value' => variable_get('upload_inline_upload_'. $form['#node_type']->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'))), + '#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 Upload settings'), 'admin/settings/inline/inline_upload'))), ); } }