function _editablefields_pre_render in Editable Fields 6.2
Same name and namespace in other branches
- 6.3 editablefields.module \_editablefields_pre_render()
Resizable Textarea has an issue with setting focus. To circumvent this we have to set the forms fields #resizable field to FALSE. We have to use pre_render because the here the field's #type is still textarea. TODO Keep editable_HTML and editable_JAVA fields resizable, they don't have the focus issue.
1 string reference to '_editablefields_pre_render'
- editablefields_form_builder in ./
editablefields.module - Form builder callback.
File
- ./
editablefields.module, line 193 - Editable fields module.
Code
function _editablefields_pre_render(&$form) {
if ($form['field_name'][0]['value']['#type'] == 'textarea') {
$form['field_name'][0]['value']['#resizable'] = FALSE;
}
return $form;
}