You are here

constant CMS_CONTENT_SYNC_MODULE_WEIGHT in CMS Content Sync 8

Same name and namespace in other branches
  1. 2.1.x cms_content_sync.install \CMS_CONTENT_SYNC_MODULE_WEIGHT
  2. 2.0.x cms_content_sync.install \CMS_CONTENT_SYNC_MODULE_WEIGHT

Common modules that need to execute before us:

  • default : 0
  • menu_link_content : 1
  • content_translation : 10
  • views : 10
  • paragraphs : 11.
1 use of CMS_CONTENT_SYNC_MODULE_WEIGHT
_cms_content_sync_set_module_weight in ./cms_content_sync.install
Update the weight of the Content Sync module. As Content Sync depends on other modules being run before it, we need to make sure our hooks like hook_form_alter are called after everyone else's. Symptoms if not done include:

File

./cms_content_sync.install, line 27
Install file for cms_content_sync.

Code

define('CMS_CONTENT_SYNC_MODULE_WEIGHT', 50);