function editor_plugin_type_create in Editor 6
Create a plugin type object.
@returns object
Parameters
string $ptid : A 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 : A theme function name without the 'theme_' prefix.
string $description : (optional) Description wrapped in t().
1 call to editor_plugin_type_create()
- editor_editor_plugin_types in ./
editor.plugins.types.inc - Default plugin types.
File
- ./
editor.module, line 360 - Extendable WYSIWYG editor @author Tj Holowaychuk <http://www.350designs.com/> @package Editor
Code
function editor_plugin_type_create($ptid, $name, $theme, $description = '') {
$plugin_type = new stdClass();
$plugin_type->ptid = $ptid;
$plugin_type->name = $name;
$plugin_type->theme = $theme;
$plugin_type->description = $description;
return $plugin_type;
}