You are here

function editor_plugin_get in Editor 6

Same name and namespace in other branches
  1. 5 editor.module \editor_plugin_get()

Return a plugin object or FALSE.

1 call to editor_plugin_get()
editor_profile_plugins in ./editor.module
Return plugins based on a profile's placeholders.

File

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

Code

function editor_plugin_get($pid) {
  $plugins = editor_invoke_plugins();
  if (count($plugins)) {
    foreach ($plugins as $i => $plugin) {
      if ($plugin->pid == $pid) {
        return $plugin;
      }
    }
  }
  return FALSE;
}