transliteration.inc in File (Field) Paths 6.2
Transliteration module integration.
File
modules/transliteration.incView source
<?php
/**
* @file
* Transliteration module integration.
*/
/**
* Implements hook_filefield_paths_field_options().
*/
function transliteration_filefield_paths_field_options() {
return array(
'transliteration' => t('Transliterate'),
);
}
/**
* Implements hook_filefield_paths_field_postprocess().
*/
function transliteration_filefield_paths_field_postprocess($value, $field, $settings) {
if ($settings['transliteration']) {
$values = explode('/', $value);
foreach ($values as &$value) {
$value = transliteration_clean_filename($value);
}
$value = implode('/', $values);
}
}
Functions
Name![]() |
Description |
---|---|
transliteration_filefield_paths_field_options | Implements hook_filefield_paths_field_options(). |
transliteration_filefield_paths_field_postprocess | Implements hook_filefield_paths_field_postprocess(). |