locale_translate_file_create($filepath)
Creates a file object and populates the timestamp property.
string $filepath: The filepath of a file to import.
object An object representing the file.
function locale_translate_file_create($filepath) { $file = new stdClass(); $file->filename = drupal_basename($filepath); $file->uri = $filepath; $file->timestamp = filemtime($file->uri); return $file; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!locale!locale.bulk.inc/function/locale_translate_file_create/8.1.x