function libraries_custom_formatters_form_alter in Custom Formatters 6
Implements hook_custom_formatters_form_alter().
File
- includes/
libraries.inc, line 10 - Libraries API module Integration.
Code
function libraries_custom_formatters_form_alter(&$form, $form_state, $form_id) {
if ($form_id == 'custom_formatters_formatter_form' && isset($form['editor'])) {
// EditArea library support.
if (in_array('editarea', array_keys(libraries_get_libraries()))) {
$form['#after_build'][] = 'custom_formatters_libraries_after_build';
$form['editor']['code']['#resizable'] = FALSE;
$form['editor']['code']['#attributes']['style'] = 'width: 100%';
}
}
}