function _webform_localization_sync in Webform Localization 7.4
Same name and namespace in other branches
- 7 webform_localization.module \_webform_localization_sync()
Global switch to enable / disable syncing.
This function also check whether we are synching at the moment.
Return value
bool TRUE if we need to run sync operations. FALSE during syncing so we don't have recursion.
3 calls to _webform_localization_sync()
- webform_localization_webform_component_delete in ./
webform_localization.module - Implements hook_webform_component_delete().
- webform_localization_webform_component_insert in ./
webform_localization.module - Implements hook_webform_component_insert().
- webform_localization_webform_component_presave in ./
webform_localization.module - Implements hook_webform_component_presave().
File
- ./
webform_localization.module, line 1047 - Webform localization module.
Code
function _webform_localization_sync($status = NULL) {
static $current = TRUE;
if (isset($status)) {
$current = $status;
}
return $current;
}