Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As pwolanin reported in http://drupal.org/node/77990, it is possible to change the machine-readable name of a node type, but when that change is made, the permissions for that node type still use the old machine-readable name. When a node type's machine-readable name is updated, the permissions for that node type need to be updated as well.
Comment | File | Size | Author |
---|---|---|---|
#3 | content_types_update_permissions_02.patch.txt | 1.31 KB | Jose Reyero |
#1 | content_types_update_permissions_01.patch | 1.3 KB | Jose Reyero |
Comments
Comment #1
Jose Reyero CreditAttribution: Jose Reyero commentedHere's the patch
Comment #2
drummThere are hooks for this; the added code should be in the user module. And the indentation needs to be fixed for that UPDATE query.
Comment #3
Jose Reyero CreditAttribution: Jose Reyero commentedFixed indentation.
About your comment
>There are hooks for this; the added code should be in the user module
I disagree. This is content types specific and the user module doesn't know -nor needs to know- about content type names or permissions.
Comment #4
tstoecklerI just tried this out, and it is still a valid issue.
Comment #5
sureshbabudrupal CreditAttribution: sureshbabudrupal commentedWhen i was installed the ckeditor then bellow text came
The CKEditor component is not installed correctly. Please go to the CKEditor homepage to download the latest version. After that you must extract the files to sites/all/modules/ckeditor/ckeditor or sites/all/libraries/ckeditor and make sure that the file sites/all/modules/ckeditor/ckeditor/ckeditor.js or sites/all/libraries/ckeditor/ckeditor.js exist. Refer to the README.txt for more information.
There is no ckeditor.js in ckeditor.
Comment #6
tstoecklerRestoring values.
Please open a new issue if you have any problem that is not related to this one.
Comment #7
drupal_was_my_past CreditAttribution: drupal_was_my_past commentedThis patch should include tests.
Comment #10
dpiYou can no longer change machine names for content types in D8. You can do this for D7 however.