Hi

I'm including this module for having the input formats available in an install profile, I can export them as part of a feature, but when the site is installed and the feature enabled, I have to clear the cache manually in order to get the input formats available. I'm doing a cache_clear_all at the end of the install profile, no effect.

This is crashing with this issue as well http://drupal.org/node/624018 because if the formats are not available when the wysiwyg profile is created (in the same feature), it behaves weird and sometimes only one wysiwyg profile "survives"

Thanks

Comments

dagmar’s picture

Category: task » support

Input formats are not synchronized when you clear the cache. The reason of that is filter module doesn't use cache table to storage filter settings, and since I cannot hack filter module, I can't control that.

However you can add a call to input_formats_api_syncronize() (probably you will have to include input_formats.api.inc) in your install profile in order to get your input formats loaded correctly.

This function is also called when you see the admin/build/modules page, and admin/build/features.

Please mark this as fixed is solves your problem.

pcambra’s picture

Thank you Mariano, this works, I've included these two lines at the very end of my profile and no more manual cache cleaning!

  module_load_include('api.inc', 'input_formats');
  input_formats_api_syncronize();
pcambra’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.