You are here

libraries.inc in Custom Formatters 7.2

Same filename and directory in other branches
  1. 6 includes/libraries.inc

Libraries API integration.

File

includes/libraries.inc
View source
<?php

/**
 * @file
 * Libraries API integration.
 */

/**
 * Implements hook_custom_formatters_form_alter_alter().
 */
function libraries_custom_formatters_form_alter_alter(&$form, $form_state, $form_id) {
  if (in_array($form_id, array(
    'ctools_export_ui_edit_item_form',
    'ctools_export_ui_edit_item_wizard_form',
  )) && isset($form['#formatters'])) {

    // EditArea library support.
    if (in_array('editarea', array_keys(libraries_get_libraries()))) {
      $form['#attached']['js'][] = array(
        'data' => libraries_get_path('editarea') . '/edit_area/edit_area_full.js',
        'cache' => FALSE,
      );
      $form['engine']['code']['#resizable'] = FALSE;
    }
  }
}

Functions

Namesort descending Description
libraries_custom_formatters_form_alter_alter Implements hook_custom_formatters_form_alter_alter().