From time to time, you may want to use a newer or even older version of a module than what is included in a kit. That is expected and supported by utilizing the order Drupal allows overriding modules. Similar to how a .tpl file for a theme can override the version include with the base theme or a module by placing it in sites/all/themes/[YOURTHEMENAME], adding a module to sites/all/modules will override the version in profiles/[STARTERKIT]/modules.
The module is overridden if it is a newer or older version of the module. The ideal workflow is to open an issue to alert other developers working with the kits about why you needed a different version. If you need a newer version and you didn't find any conflicts or issues with other modules in the kit, other sites should test that by overriding to too. If there are no issues, the kit should be updated.
ONCE THE KIT IS UPDATED, YOU MUST REMOVE THE MODULE FROM SITES/ALL/MODULES OR IT WILL CONTINUE TO BE OVERRIDDEN.
When moving modules between profiles/[STARTERKIT]/modules and sites/all/modules, you may run into issues with modules that use Drupal's registry table. This happens more often if you are changing the location and version at the same time.
There are a few ways to work through these issues.
- drush rr - http://drupal.org/project/registry_rebuild
- manually clearing cache tables
- disable modules, move, then re-enable
TRUNCATE cache ;
TRUNCATE cache_block ;
TRUNCATE cache_bootstrap ;
TRUNCATE cache_content ;
TRUNCATE cache_entity_og_membership ;
TRUNCATE cache_entity_og_membership_type ;
TRUNCATE cache_field ;
TRUNCATE cache_file_styles ;
TRUNCATE cache_filter ;
TRUNCATE cache_form ;
TRUNCATE cache_image ;
TRUNCATE cache_location ;
TRUNCATE cache_media_xml ;
TRUNCATE cache_menu ;
TRUNCATE cache_page ;
TRUNCATE cache_path ;
TRUNCATE cache_styles ;
TRUNCATE cache_token ;
TRUNCATE cache_update ;
TRUNCATE cache_views ;
TRUNCATE cache_views_data ;
TRUNCATE cache_widgets ;
Attachment | Size |
---|---|
manually_clearing_chache.png | 723.76 KB |
manually_clearing_cache2.png | 247.87 KB |