2); } } /** * Implements hook_ctools_plugin_directory(). */ function custom_formatters_ctools_plugin_directory($module, $plugin) { if ($module == 'ctools' && !empty($plugin)) { return "plugins/{$plugin}"; } } /** * Implements hook_custom_formatters_theme_alter() on behalf of ctools.module. */ function ctools_custom_formatters_theme_alter(&$theme) { $theme['custom_formatters_export_ui_form_preview'] = array( 'render element' => 'form', 'file' => 'custom_formatters.inc', 'path' => drupal_get_path('module', 'custom_formatters') . '/plugins/export_ui' ); }