Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
310
Merge Requests
310
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
8e3819bd
Commit
8e3819bd
authored
Aug 25, 2014
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2325479
by tim.plunkett: Convert editor_element_info() to editor_element_info_alter().
parent
091d0927
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
core/modules/editor/editor.module
core/modules/editor/editor.module
+3
-6
No files found.
core/modules/editor/editor.module
View file @
8e3819bd
...
...
@@ -52,7 +52,7 @@ function editor_menu_links_discovered_alter(array &$links) {
}
/**
* Implements hook_element_info().
* Implements hook_element_info
_alter
().
*
* Extends the functionality of text_format elements (provided by Filter
* module), so that selecting a text format notifies a client-side text editor
...
...
@@ -60,11 +60,8 @@ function editor_menu_links_discovered_alter(array &$links) {
*
* @see filter_element_info()
*/
function
editor_element_info
()
{
$type
[
'text_format'
]
=
array
(
'#pre_render'
=>
array
(
'element.editor:preRenderTextFormat'
),
);
return
$type
;
function
editor_element_info_alter
(
&
$types
)
{
$types
[
'text_format'
][
'#pre_render'
][]
=
'element.editor:preRenderTextFormat'
;
}
/**
...
...
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