function imagefield_form_alter in ImageField 5.2
Implementation of hook_form_alter(). Set the appropriate attibutes to allow file uploads on the field settings form.
File
- ./
imagefield.module, line 492 - Defines an image field type. imagefield uses content.module to store the fid, and the drupal files table to store the actual file data.
Code
function imagefield_form_alter($form_id, &$form) {
if ($form_id == '_content_admin_field') {
$form['#attributes'] = array(
'enctype' => 'multipart/form-data',
);
}
}