function path_entity_field_info

Implements hook_entity_field_info().

File

drupal/core/modules/path/path.module, line 281
Enables users to rename URLs.

Code

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;
  }
}