You are here

function editor_plugin_type_get in Editor 6

Return a plugin type object or FALSE.

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

File

./editor.module, line 270
Extendable WYSIWYG editor @author Tj Holowaychuk <http://www.350designs.com/> @package Editor

Code

function editor_plugin_type_get($ptid) {
  $plugin_types = editor_invoke_plugin_types();
  if (count($plugin_types)) {
    foreach ($plugin_types as $i => $plugin_type) {
      if ($plugin_type->ptid == $ptid) {
        return $plugin_type;
      }
    }
  }
  return FALSE;
}