You are here

function easychart_wysiwyg_wysiwyg_include_directory in Easychart 7.3

Implementing the Wysiwyg API.

Register a directory containing Wysiwyg plugins.

Parameters

string $type: The type of objects being collected: either 'plugins' or 'editors'.

Return value

string A sub-directory of the implementing module that contains the corresponding plugin files. This directory must only contain integration files for Wysiwyg module.

File

modules/easychart_wysiwyg/easychart_wysiwyg.module, line 83
Easychart WYSIWYG integration.

Code

function easychart_wysiwyg_wysiwyg_include_directory($type) {
  switch ($type) {
    case 'plugins':

      // You can just return $type, if you place your Wysiwyg plugins into a
      // sub-directory named 'plugins'.
      return $type;
  }
}