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
967d8d15
Commit
967d8d15
authored
May 07, 2010
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#787654
by yched: deleting a bundle doesn't remove it from the data.
parent
3a1c93a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
modules/node/node.module
modules/node/node.module
+2
-1
No files found.
modules/node/node.module
View file @
967d8d15
...
...
@@ -445,7 +445,7 @@ function node_type_get_name($node) {
*
* All new module-defined node types are saved to the database via a call to
* node_type_save(), and obsolete ones are deleted via a call to
* node_type_delete(). See _node_types_build() for an explanation of the new
* node_type_delete(). See _node_types_build() for an explanation of the new
* and obsolete types.
*/
function
node_types_rebuild
()
{
...
...
@@ -611,6 +611,7 @@ function node_type_delete($type) {
db_delete
(
'node_type'
)
->
condition
(
'type'
,
$type
)
->
execute
();
field_attach_delete_bundle
(
'node'
,
$type
);
module_invoke_all
(
'node_type_delete'
,
$info
);
// Clear the node type cache.
...
...
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