Hello,
Installing a feature module with ckeditor profiles will not make these profiles available: you will have to manually revert the feature to see your profiles.
The source of the problem is that the module 'ckeditor' is a 'faux-exportables' module (as defined in API.txt of the features modules), meaning that the default features stored in code are also being stored in the database. (That is at least what ckeditor_profile_features_revert(), which writes on DB, implies).
To handle faux-exportables, there is another hook that is needed to be implemented: hook_features_rebuild().
So the following patch allows the import to work:
}
/**
+ * Implementation of hook_features_rebuild()
+ */
+function ckeditor_profile_features_rebuild($module) {
+ ckeditor_profile_features_revert($module);
+}
+
+/**
* Implementation of hook_features_revert()
*/
function ckeditor_profile_features_revert($module) {
Comment | File | Size | Author |
---|---|---|---|
ckeditor-feature-import-fix-1103980.patch | 548 bytes | ndeschildre | |
Comments
Comment #1
dczepierga CreditAttribution: dczepierga commentedChanges commited to GIT (diff).
Really thx for your patch and help.
Greetings
Comment #2
ndeschildre CreditAttribution: ndeschildre commentedThanks!
Comment #4
eXistenZ CreditAttribution: eXistenZ commentedHello,
it still seems that even though I am running the patched version of the ckeditor plugin (7.x-1.9), the import of ckeditor profiles via features still fails. People I send my packed feature to complain that that feature breaks their Drupal environment.
What I packed in the feature:
- 2 ckeditor profiles: generic and mywebsite_cms
- access rights: use text format filtered_html, use text format full_html, use text format mywebsite_cms
It makes no difference if I pack all ckeditor profiles in the feature.
After importing in another Drupal environment we found that the profile mywebsite_cms was not created, and Drupal tries to write access rights for that profile that does not exist:
Comment #5
dczepierga CreditAttribution: dczepierga commented@eXistenZ, pls not open closed issue which are fixed (confirmed) does it work and released to stable version.
It could be a lot of reasons why sth not work, so pls open new issue with your bug and if it possible attach your profile or send me PM with it, it will help to check this and fix it asap.
Greetings