pathauto_node_i18n.inc in Pathauto 5
File
contrib/pathauto_node_i18n.incView source
<?php
/*
* Implementation of hook_pathauto_node()
*/
function i18n_pathauto_node($op, $node = NULL) {
switch ($op) {
case 'placeholders':
$placeholders = array();
$placeholders[t('[lang]')] = t('Language code of the document');
return $placeholders;
case 'values':
$results = array();
$results[t('[lang]')] = i18n_node_get_lang($node->nid, i18n_get_lang());
return $results;
default:
break;
}
}
Functions
Name | Description |
---|---|
i18n_pathauto_node |