function cms_content_sync_update_taxonomy_tree_submit in CMS Content Sync 2.1.x
Same name and namespace in other branches
- 8 cms_content_sync.module \cms_content_sync_update_taxonomy_tree_submit()
- 2.0.x cms_content_sync.module \cms_content_sync_update_taxonomy_tree_submit()
React on changes within taxonomy trees.
Parameters
$form:
\Drupal\Core\Form\FormStateInterface $form_state:
1 string reference to 'cms_content_sync_update_taxonomy_tree_submit'
- cms_content_sync_form_alter in ./
cms_content_sync.module - 1) Make sure the user is informed that content will not only be deleted on this * instance but also on all connected instances if configured that way.
File
- ./
cms_content_sync.module, line 320 - Module file for cms_content_sync.
Code
function cms_content_sync_update_taxonomy_tree_submit($form, FormStateInterface $form_state) {
$entities = _cms_content_sync_update_taxonomy_tree_static(FALSE);
foreach ($entities as $entity) {
PushIntent::pushEntityFromUi($entity, PushIntent::PUSH_AUTOMATICALLY, SyncIntent::ACTION_UPDATE);
}
}