function pathauto_i18n_taxonomy_get_vocabulary_name in Pathauto i18n 8
Same name and namespace in other branches
- 7 modules/pathauto_i18n_taxonomy/pathauto_i18n_taxonomy.module \pathauto_i18n_taxonomy_get_vocabulary_name()
Get vocabulary name from pattern name.
1 call to pathauto_i18n_taxonomy_get_vocabulary_name()
- pathauto_i18n_taxonomy_form_pathauto_patterns_form_alter in modules/
pathauto_i18n_taxonomy/ pathauto_i18n_taxonomy.module - Implements hook_form_BASE_FORM_ID_alter().
File
- modules/
pathauto_i18n_taxonomy/ pathauto_i18n_taxonomy.module, line 47 - Provides tools for creating multilanguage aliases for taxonomy terms.
Code
function pathauto_i18n_taxonomy_get_vocabulary_name($pattern_name) {
$scope = str_replace(array(
'pathauto_taxonomy_term_',
'_pattern',
), array(
'',
'',
), $pattern_name);
return !empty($scope) ? $scope : FALSE;
}