You are here

function i18nsync_node_fields in Internationalization 6

Same name and namespace in other branches
  1. 5.3 experimental/i18nsync.module \i18nsync_node_fields()
  2. 5 experimental/i18nsync.module \i18nsync_node_fields()
  3. 5.2 experimental/i18nsync.module \i18nsync_node_fields()

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

2 calls to i18nsync_node_fields()
i18nsync_form_alter in i18nsync/i18nsync.module
Implementation of hook_form_alter().
i18nsync_nodeapi in i18nsync/i18nsync.module
Implementation of hook_nodeapi().

File

i18nsync/i18nsync.module, line 442
Internationalization (i18n) package. Synchronization of translations

Code

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