You are here

function i18nsync_file_references in Internationalization 6

Implementation of hook_file_references()

Inform CCK's filefield that we have other nodes using that file so it won't be deleted

File

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

Code

function i18nsync_file_references($file) {

  // We have marked the field previously on nodeapi load
  return !empty($file->i18nsync);
}