Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
866e3db5
Commit
866e3db5
authored
Jul 04, 2012
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#1416900
by 30equals: remove node_node_type_insert() from content_types().inc.
parent
3a3bce39
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
core/modules/node/content_types.inc
core/modules/node/content_types.inc
+0
-13
No files found.
core/modules/node/content_types.inc
View file @
866e3db5
...
...
@@ -396,19 +396,6 @@ function node_type_form_submit($form, &$form_state) {
return
;
}
/**
* Implements hook_node_type_insert().
*/
function
node_node_type_insert
(
$info
)
{
if
(
!
empty
(
$info
->
old_type
)
&&
$info
->
old_type
!=
$info
->
type
)
{
$update_count
=
node_type_update_nodes
(
$info
->
old_type
,
$info
->
type
);
if
(
$update_count
)
{
drupal_set_message
(
format_plural
(
$update_count
,
'Changed the content type of 1 post from %old-type to %type.'
,
'Changed the content type of @count posts from %old-type to %type.'
,
array
(
'%old-type'
=>
$info
->
old_type
,
'%type'
=>
$info
->
type
)));
}
}
}
/**
* Implements hook_node_type_update().
*/
...
...
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