You are here

function node_embed_wysiwyg_include_directory in Node Embed 7

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

./node_embed.module, line 260
This module defines an input filter for taking an embed code syntax ([[nid: ###]]) and removing the embed code and replacing with a rendered node view at that position in the text field.

Code

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