diff --git a/core/modules/path/path.module b/core/modules/path/path.module index 8b992b7..03be41b 100644 --- a/core/modules/path/path.module +++ b/core/modules/path/path.module @@ -275,16 +275,18 @@ function path_data_type_info() { } /** - * Implements hook_taxonomy_term_field_info(). + * Implements hook_entity_field_info(). */ -function path_taxonomy_term_field_info() { - $info['definitions']['path'] = array( - 'type' => 'path_field', - 'label' => t('The path alias'), - 'computed' => TRUE, - 'list' => TRUE, - ); - return $info; +function path_entity_field_info($entity_type) { + if ($entity_type === 'taxonomy_term') { + $info['definitions']['path'] = array( + 'type' => 'path_field', + 'label' => t('The path alias'), + 'computed' => TRUE, + 'list' => TRUE, + ); + return $info; + } } /**