function hook_potx_file_location_info in Potx exportables 7
Hook used to define the location where to find the po files. A po file has a name of the form "name.ln.po" where ln is the language code.
Return value
An associative array with a key and a path.
1 invocation of hook_potx_file_location_info()
- _potx_exportables_import_data in ./
potx_exportables.module - The function that does all the magic. Finds new PO files, adds them to the queue if not yet processed and finally saves the registry in the table.
File
- ./
potx_exportables.api.php, line 17 - Hooks provided by the Potx Exportables module.
Code
function hook_potx_file_location_info() {
return array(
'single_blog' => array(
'path' => drupal_get_path('module', 'single_blog') . '/potx',
),
);
}