function editor_plugin_class_create in Editor 5
Create a plugin class object.
@returns object
Parameters
string $pcid : A machine-readable unique identifier. This may be something similar to 'button', or 'select'.
string $name : A human readable string which should be wrapped in t().
string $theme : (optiona) A theme function name without the 'theme_' prefix.
1 call to editor_plugin_class_create()
- editor_editor_plugin_classes in ./
editor.plugins.classes.inc - Default plugin classes.
File
- ./
editor.module, line 474 - Extendable WYSIWYG editor @author Tj Holowaychuk <tj@vision-media.ca> @link http://vision-media.ca @package Editor
Code
function editor_plugin_class_create($pcid, $name, $theme = NULL) {
$plugin_class = new stdClass();
$plugin_class->pcid = $pcid;
$plugin_class->name = $name;
$plugin_class->theme = $theme;
return $plugin_class;
}