1 ckeditor.api.php hook_ckeditor_plugins_alter(array &$plugins)

Modify the list of available CKEditor 4 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_ckeditor_plugins()

Related topics

File

core/modules/ckeditor/ckeditor.api.php, line 115
Documentation for CKEditor 4 module APIs.

Code

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