You are here

function editor_plugin_class_get in Editor 5

Get a plugin class object.

Parameters

int $pcid: Plugin class id

Return value

mixed

  • success: Plugin class object
  • failure: FALSE
1 call to editor_plugin_class_get()
editor_display_toolbars in ./editor.module
Generate toolbar markup.

File

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

Code

function editor_plugin_class_get($pcid) {
  $plugin_classes = editor_invoke_plugin_classes();
  if (count($plugin_classes)) {
    foreach ($plugin_classes as $i => $plugin_class) {
      if ($plugin_class->pcid == $pcid) {
        return $plugin_class;
      }
    }
  }
  return FALSE;
}