function wysiwyg_get_plugins in Wysiwyg 5
Same name and namespace in other branches
- 5.2 wysiwyg.module \wysiwyg_get_plugins()
- 6.2 wysiwyg.module \wysiwyg_get_plugins()
- 6 wysiwyg.module \wysiwyg_get_plugins()
- 7.2 wysiwyg.module \wysiwyg_get_plugins()
Return plugin metadata from the plugin registry.
Parameters
$editor_name: The internal name of an editor to return plugins for.
Return value
An array for each plugin.
3 calls to wysiwyg_get_plugins()
- wysiwyg_fckeditor_settings in editors/
fckeditor.inc - Return runtime editor settings for a given wysiwyg profile.
- wysiwyg_profile_form in ./
wysiwyg.admin.inc - Return an HTML form for profile configuration.
- wysiwyg_tinymce_settings in editors/
tinymce.inc - Return runtime editor settings for a given wysiwyg profile.
File
- ./
wysiwyg.module, line 426 - Integrate client-side editors with Drupal.
Code
function wysiwyg_get_plugins($editor_name) {
$plugins = array();
if (!empty($editor_name)) {
$editor = wysiwyg_get_editor($editor_name);
// Add internal editor plugins.
if (isset($editor['plugin callback']) && function_exists($editor['plugin callback'])) {
$plugins = $editor['plugin callback']($editor);
}
// Load our own plugins.
include_once drupal_get_path('module', 'wysiwyg') . '/wysiwyg.plugins.inc';
// Add editor plugins provided via hook_wysiwyg_plugin().
$plugins = array_merge($plugins, module_invoke_all('wysiwyg_plugin', $editor['name'], $editor['installed version']));
}
return $plugins;
}