You are here

function i18n_sync in Internationalization 7

Global switch to enable / disable syncing and check whether we are synching at the moment

Return value

boolean TRUE if we need to run sync operations. FALSE during syncing so we don't have recursion.

2 calls to i18n_sync()
i18n_sync_node_check in i18n_sync/i18n_sync.module
Check whether this node is to be synced
i18n_sync_node_translation in i18n_sync/i18n_sync.node.inc
Synchronizes fields for node translation.
4 string references to 'i18n_sync'
i18nSyncTestCase::setUp in i18n_sync/i18n_sync.test
Sets up a Drupal site for running functional and integration tests.
i18n_sync_features_pipe_node_alter in i18n_sync/i18n_sync.features.inc
Implements hook_features_pipe_node_alter().
i18n_sync_node_update in i18n_sync/i18n_sync.module
Implements hook_node_update().
i18n_sync_options in i18n_sync/i18n_sync.module
Returns list of available fields for given entity / bundle.

File

i18n_sync/i18n_sync.module, line 22
Internationalization (i18n) package. Synchronization of translations

Code

function i18n_sync($status = NULL) {
  static $current = TRUE;
  if (isset($status)) {
    $current = $status;
  }
  return $current;
}