function editor_profile_plugins in Editor 6
Same name and namespace in other branches
- 5 editor.module \editor_profile_plugins()
Return plugins based on a profile's placeholders.
1 call to editor_profile_plugins()
- editor_display_toolbars in ./
editor.module - @todo: handle different toolbars etc? or all themeing?
File
- ./
editor.module, line 195 - Extendable WYSIWYG editor @author Tj Holowaychuk <http://www.350designs.com/> @package Editor
Code
function editor_profile_plugins($profile) {
$plugins = array();
if (count($profile->profile_array)) {
foreach ($profile->profile_array as $pid) {
if ($pid != '|') {
$plugin = editor_plugin_get($pid);
if ($plugin->pid) {
$plugins[] = $plugin;
}
}
else {
$plugins[] = '|';
}
}
}
return $plugins;
}