You are here

function editor_invoke_plugin_api in Editor 6

Same name and namespace in other branches
  1. 5 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.
  • 'response': The plugin has returned its own data which you may alter.

object $plugin:

mixed $a1:

mixed $a2:

1 call to editor_invoke_plugin_api()
editor_display_toolbars in ./editor.module
@todo: handle different toolbars etc? or all themeing?

File

./editor.module, line 389
Extendable WYSIWYG editor @author Tj Holowaychuk <http://www.350designs.com/> @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);
  }
}