function _cms_content_sync_update_taxonomy_tree_static 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_static()
- 2.0.x cms_content_sync.module \_cms_content_sync_update_taxonomy_tree_static()
Temp. save static values for taxonomy tree changes.
Parameters
null|bool $set:
Return value
bool|array
3 calls to _cms_content_sync_update_taxonomy_tree_static()
- cms_content_sync_entity_update in ./
cms_content_sync.module - Push the entity automatically if configured to do so.
- cms_content_sync_update_taxonomy_tree_submit in ./
cms_content_sync.module - React on changes within taxonomy trees.
- cms_content_sync_update_taxonomy_tree_validate in ./
cms_content_sync.module - React on changes within taxonomy trees.
File
- ./
cms_content_sync.module, line 285 - Module file for cms_content_sync.
Code
function _cms_content_sync_update_taxonomy_tree_static($set = NULL, $entity = NULL) {
static $value = FALSE;
static $entities = [];
if ($set !== NULL) {
$value = $set;
}
if ($entity !== NULL) {
$entities[] = $entity;
}
if ($set === FALSE) {
return $entities;
}
return $value;
}