You are here

function hook_wysiwyg_include_directory in Wysiwyg 7.2

Same name and namespace in other branches
  1. 5.2 wysiwyg.api.php \hook_wysiwyg_include_directory()
  2. 6.2 wysiwyg.api.php \hook_wysiwyg_include_directory()

Register a directory containing Wysiwyg plugins.

Parameters

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

Return value

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

1 invocation of hook_wysiwyg_include_directory()
wysiwyg_get_directories in ./wysiwyg.module
Return a list of directories by modules implementing wysiwyg_include_directory().

File

./wysiwyg.api.php, line 105
API documentation for Wysiwyg module.

Code

function hook_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;
  }
}