You are here

function editor_invoke_plugins in Editor 5

Same name and namespace in other branches
  1. 6 editor.module \editor_invoke_plugins()

Invokes hook_editor_plugins().

The editor plugins hook allows for 'plugins' which are displayed within the editor toolbar. This may range from buttons, select fields, etc. Each providing unique funtionality.

@returns array Plugins

See also

editor_plugin_create()

3 calls to editor_invoke_plugins()
editor_attach in ./editor.module
Initialize the editor attachment process.
editor_plugin_get in ./editor.module
Get a plugin object.
editor_settings_profiles in ./editor.module
Profile settings form.

File

./editor.module, line 556
Extendable WYSIWYG editor @author Tj Holowaychuk <tj@vision-media.ca> @link http://vision-media.ca @package Editor

Code

function editor_invoke_plugins() {
  static $plugins;
  if (!isset($plugins)) {
    $path = drupal_get_path('module', 'editor');
    require_once $path . '/editor.plugins.inc';
    $plugins = module_invoke_all('editor_plugins');
  }
  return $plugins;
}