Index: filefield.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/filefield/filefield.module,v retrieving revision 1.212 diff -u -r1.212 filefield.module --- filefield.module 24 Apr 2010 04:48:19 -0000 1.212 +++ filefield.module 28 Apr 2010 22:22:55 -0000 @@ -292,8 +292,12 @@ * Implementation of hook_widget(). */ function filefield_widget(&$form, &$form_state, $field, $items, $delta = 0) { + if (module_exists('devel_themer') && (user_access('access devel theme information') || user_access('access devel information'))) { + drupal_set_message(t('Files may not be uploaded while the Theme Developer tool is enabled. It is highly recommended to disable this module unless it is actively being used.', array('!url' => url('admin/build/modules'))), 'error'); + } + // CCK doesn't give a validate callback at the field level... - // and FAPI's #require is naieve to complex structures... + // and FAPI's #require is naive to complex structures... // we validate at the field level ourselves. if (empty($form['#validate']) || !in_array('filefield_node_form_validate', $form['#validate'])) { $form['#validate'][] = 'filefield_node_form_validate';