I need to change the style of the title in image field to be a text area rather than a text field. I can achieve this by hacking core in the following way:
image.field.inc line 410
$element['title'] = array(
'#type' => 'textarea',
'#title' => t('Title'),
'#default_value' => isset($item['title']) ? $item['title'] : '',
'#description' => t('The title is used as a tool tip when the user hovers the mouse over the image.'),
'#maxlength' => variable_get('image_title_length', 500),
'#weight' => -1,
'#access' => (bool) $item['fid'] && $settings['title_field'],
);
// Change '#type' => 'textarea' to '#type' => 'textfield'
I don't though, want to hack core. How can I create a preprocess function to allow me to do this via my template.php.