You are here

function hook_tinymce_plugins_alter in TinyMCE 7

Modify the list of available TinyMCE plugins.

This hook may be used to modify plugin properties after they have been specified by other modules.

Parameters

$plugins: An array of all the existing plugin definitions, passed by reference.

See also

hook_tinymce_plugins()

1 invocation of hook_tinymce_plugins_alter()
tinymce_plugins in ./tinymce.module
Retrieves the full list of installed TinyMCE plugins.

File

./tinymce.api.php, line 84
Documentation for TinyMCE module APIs.

Code

function hook_tinymce_plugins_alter(array &$plugins) {
  $plugins['someplugin']['enabled callback'] = 'mymodule_someplugin_enabled_callback';
}