You are here

function ctools_custom_formatters_init in Custom Formatters 7.2

Implements hook_custom_formatters_init().

File

includes/ctools.inc, line 11
Chaos tool suite module integration.

Code

function ctools_custom_formatters_init() {
  if (strstr(request_uri(), 'system/ajax') && in_array($_POST['form_id'], array(
    'ctools_export_ui_edit_item_form',
    'custom_formatters_export_ui_export_form',
  ))) {
    require_once drupal_get_path('module', 'custom_formatters') . '/plugins/export_ui/custom_formatters.inc';

    // Temporary fix for CTools #AJAX issue.
    // @See http://drupal.org/node/1142812
    ctools_include('export');
  }
}