function editor_plugin_get in Editor 5
Same name and namespace in other branches
- 6 editor.module \editor_plugin_get()
Get a plugin object.
Parameters
int $pid: Plugin id
Return value
mixed
- success: Plugin object
- failure: FALSE
1 call to editor_plugin_get()
- editor_profile_plugins in ./
editor.module - Get plugins based on a profile's placeholders.
File
- ./
editor.module, line 404 - Extendable WYSIWYG editor @author Tj Holowaychuk <tj@vision-media.ca> @link http://vision-media.ca @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;
}