You are here

function i18n_sync_node_fields in Internationalization 7

Returns list of fields to synchronize for a given content type.

Parameters

$type: Node type.

$field: Optional field name to check whether it is in the list

3 calls to i18n_sync_node_fields()
i18n_sync_form_node_type_form_alter in i18n_sync/i18n_sync.module
Implements hook_form_FORM_ID_alter().
i18n_sync_node_prepare in i18n_sync/i18n_sync.module
Implements hook_node_prepare().
i18n_sync_node_update in i18n_sync/i18n_sync.module
Implements hook_node_update().

File

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

Code

function i18n_sync_node_fields($type, $field = NULL) {
  $fields = variable_get('i18n_sync_node_type_' . $type, array());
  return $field ? in_array($field, $fields) : $fields;
}