function locale_translate_file_create

Creates a file object and populates the timestamp property.

Parameters

$filepath: The filepath of a file to import.

Return value

An object representing the file.

File

drupal/core/modules/locale/locale.bulk.inc, line 662
Mass import-export and batch import functionality for Gettext .po files.

Code

function locale_translate_file_create($filepath) {
  $file = new stdClass();
  $file->filename = drupal_basename($filepath);
  $file->uri = $filepath;
  $file->timestamp = filemtime($file->uri);
  return $file;
}