Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b9de1f2d
Commit
b9de1f2d
authored
Jun 05, 2013
by
Dries
Browse files
Issue
#1984628
by Wim Leers: documentation missing for hook_edit_editor_alter().
parent
30251ca2
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/edit/edit.api.php
0 → 100644
View file @
b9de1f2d
<?php
/**
* @file
* Hooks provided by the Edit module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* Allow modules to alter in-place editor plugin metadata.
*
* This hook is called after the in-place editor plugins have been discovered,
* but before they are cached. Hence any alterations will be cached.
*
* @param array &$editors
* An array of informations on existing in-place editors, as collected by the
* annotation discovery mechanism.
*
* @see \Drupal\edit\Annotation\InPlaceEditor
* @see \Drupal\edit\Plugin\EditorManager
*/
function
hook_edit_editor_alter
(
&
$editors
)
{
// Cleanly override editor.module's in-place editor plugin.
$editors
[
'editor'
][
'class'
]
=
'Drupal\advanced_editor\Plugin\edit\editor\AdvancedEditor'
;
}
/**
* @} End of "addtogroup hooks".
*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment