function _pathauto_get_i18n_possible_files in Pathauto 6
Return all the possible paths of the i18n-ascii.txt transliteration file.
Return value
An array of possible file paths.
2 calls to _pathauto_get_i18n_possible_files()
- pathauto_admin_settings in ./
pathauto.admin.inc - Form builder; Configure the Pathauto system.
- _pathauto_get_i18n_file in ./
pathauto.inc - Fetch the path to the i18n-ascii.txt transliteration file
File
- ./
pathauto.inc, line 716 - Miscellaneous functions for Pathauto.
Code
function _pathauto_get_i18n_possible_files() {
$file = 'i18n-ascii.txt';
$files = array(
conf_path() . '/' . $file,
"sites/all/{$file}",
drupal_get_path('module', 'pathauto') . '/' . $file,
);
// Always prefer $conf['pathauto_i18n_file'] if defined.
if ($conf_file = variable_get('pathauto_i18n_file', '')) {
array_unshift($files, $conf_file);
}
return $files;
}