libraries.inc 652 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * @file
  4. * Libraries API integration.
  5. */
  6. /**
  7. * Implements hook_custom_formatters_form_alter_alter() on behalf of
  8. * libraries.module.
  9. */
  10. function libraries_custom_formatters_form_alter_alter(&$form, $form_state, $form_id) {
  11. if (in_array($form_id, array('ctools_export_ui_edit_item_form', 'ctools_export_ui_edit_item_wizard_form')) && isset($form['#formatters'])) {
  12. // EditArea library support.
  13. if (in_array('editarea', array_keys(libraries_get_libraries()))) {
  14. $form['#attached']['js'][] = libraries_get_path('editarea') . '/edit_area/edit_area_full.js';
  15. $form['engine']['code']['#resizable'] = FALSE;
  16. }
  17. }
  18. }