You are here

function editor_invoke_plugin_api in Editor 5

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

Invokes hook_editor_plugin_api().

This hook provides modules with access to different phases which fire during the plugin process allowing manipulation. These phases are detailed below see the $op parameter.

Parameters

string $op:

  • 'alter': Allows altering of the plugin object before it is rendered.

object $plugin:

mixed $a1: Reserved for future use.

mixed $a2: Reserved for future use

1 call to editor_invoke_plugin_api()
editor_display_toolbars in ./editor.module
Generate toolbar markup.

File

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

Code

function editor_invoke_plugin_api($op, &$plugin, $a1 = NULL, $a2 = NULL) {
  foreach (module_implements('editor_plugin_api') as $module) {
    $function = $module . '_editor_plugin_api';
    $function($op, $plugin, $a1, $a2);
  }
}